{
 "cells": [
  {
   "cell_type": "code",
   "execution_count": 42,
   "metadata": {},
   "outputs": [],
   "source": [
    "import numpy as np\n",
    "import os\n",
    "from tqdm import tqdm\n",
    "from scipy.stats import pearsonr, spearmanr\n",
    "import scipy.sparse as sparse\n",
    "from scipy.stats import bernoulli, poisson\n",
    "import analysis_utils_mine as utils\n",
    "\n",
    "import plotly.graph_objects as go\n",
    "import chart_studio\n",
    "import json\n",
    "import pandas as pd\n",
    "import ast\n",
    "from datetime import datetime\n",
    "import torch\n",
    "import pandas as pd\n",
    "from datetime import datetime, timedelta\n",
    "import pickle\n",
    "\n",
    "import matplotlib.pyplot as plt"
   ]
  },
  {
   "cell_type": "code",
   "execution_count": 43,
   "metadata": {},
   "outputs": [],
   "source": [
    "project_dir = os.path.abspath('../data/floor_speeches_congs_115_116/') \n",
    "fit_dir = os.path.join(project_dir, \"mallet_fits_removed_procedural_speeches\")\n",
    "\n",
    "# Load TBIP data.\n",
    "data_dir = os.path.join(project_dir, \"clean_removing_procedural\")\n",
    "(counts, vocabulary, author_indices, \n",
    " author_map) = utils.load_text_data(data_dir)\n",
    "\n",
    "# Load TBIP parameters.\n",
    "param_dir = os.path.join(project_dir, \"tbip-pytorch-fits-og-rem-procedural-speeches-k50-init-mallet/params/\")\n",
    "(document_loc, document_scale, objective_topic_loc, objective_topic_scale, \n",
    " ideological_topic_loc, ideological_topic_scale, ideal_point_loc, \n",
    " ideal_point_scale) = utils.load_tbip_parameters(param_dir)\n",
    "\n",
    "# Compute means from variational parameters\n",
    "document_mean = np.exp(document_loc + document_scale ** 2 / 2)\n",
    "objective_topic_mean = np.exp(objective_topic_loc + \n",
    "                              objective_topic_scale ** 2 / 2)\n",
    "ideological_topic_mean = ideological_topic_loc\n",
    "ideal_point_mean = ideal_point_loc"
   ]
  },
  {
   "cell_type": "code",
   "execution_count": 44,
   "metadata": {},
   "outputs": [
    {
     "name": "stdout",
     "output_type": "stream",
     "text": [
      "(58932, 50)\n",
      "(50, 11433)\n",
      "(50, 11433)\n",
      "(490,)\n"
     ]
    }
   ],
   "source": [
    "print(document_mean.shape)\n",
    "print(objective_topic_mean.shape)\n",
    "print(ideological_topic_mean.shape)\n",
    "print(ideal_point_mean.shape)\n",
    "\n",
    "#comment below as needed just to adjust direction of ideal point values\n",
    "ideal_point_mean = -1*ideal_point_mean\n",
    "ideological_topic_loc = ideological_topic_loc * -1"
   ]
  },
  {
   "cell_type": "code",
   "execution_count": 45,
   "metadata": {
    "scrolled": true,
    "tags": []
   },
   "outputs": [
    {
     "name": "stdout",
     "output_type": "stream",
     "text": [
      "['Ideal Point = -1.0, Topic = 0: federal, colleagues, government, bureaucrats, act, federal government, reserve, process, regulations, regulatory, overreach, administration, epa, tape, red tape, balance, obama, commonsense, previous administration, current'\n",
      " 'Ideal Point = -0.5, Topic = 0: federal, act, government, process, reserve, balance, colleagues, administration, current, regulations, legislation, law, federal government, agency, agencies, requires, however, consume, regulatory, provide'\n",
      " 'Ideal Point = 0.0, Topic = 0: federal, act, process, reserve, balance, law, government, legislation, public, current, provide, information, ensure, however, requires, administration, consume, agencies, require, agency'\n",
      " 'Ideal Point = 0.5, Topic = 0: public, law, federal, act, including, process, information, balance, legislation, require, reserve, provide, current, ensure, required, requirements, concerns, however, opposition, safety'\n",
      " 'Ideal Point = 1.0, Topic = 0: undermine, including, public, opposition, enforcement, law, safety, information, require, oppose, critical, reasons, legislation, evidence, serious, required, balance, persons, provide, concerns'\n",
      " '========================================================================================================================'\n",
      " 'Ideal Point = -1.0, Topic = 1: social, social security, internet, security, communications, fcc, online, commission, data, privacy, information, consumers, media, deployment, phone, americans, broadband, technology, calls, social media'\n",
      " 'Ideal Point = -0.5, Topic = 1: social, internet, communications, social security, fcc, online, security, information, privacy, commission, americans, phone, data, media, consumers, broadband, social media, calls, personal, digital'\n",
      " 'Ideal Point = 0.0, Topic = 1: internet, social, information, communications, online, americans, fcc, phone, social security, privacy, commission, broadband, media, security, data, social media, personal, consumers, calls, digital'\n",
      " 'Ideal Point = 0.5, Topic = 1: internet, information, online, social, americans, communications, phone, broadband, colleagues, commission, privacy, fcc, personal, protect, social media, media, calls, access, data, digital'\n",
      " 'Ideal Point = 1.0, Topic = 1: internet, information, online, americans, colleagues, phone, communications, access, protect, social, act, email, broadband, open, sensitive, personal, commission, privacy, social media, calls'\n",
      " '========================================================================================================================'\n",
      " 'Ideal Point = -1.0, Topic = 2: research, technology, science, space, national, science space, energy, world, department, advanced, basic, next, nuclear, innovation, american, develop, private, next generation, development, leadership'\n",
      " 'Ideal Point = -0.5, Topic = 2: research, technology, science, space, innovation, national, energy, development, advanced, nuclear, science space, world, technologies, private, develop, next, scientific, department, leadership, generation'\n",
      " 'Ideal Point = 0.0, Topic = 2: research, technology, science, space, innovation, development, national, technologies, nuclear, energy, advanced, scientific, edge, scientists, science space, private, world, nasa, develop, innovative'\n",
      " 'Ideal Point = 0.5, Topic = 2: research, technology, science, space, innovation, development, technologies, scientific, edge, national, nuclear, scientists, advanced, energy, nasa, colleagues, scientific research, cutting edge, foundation, cutting'\n",
      " 'Ideal Point = 1.0, Topic = 2: research, technology, science, innovation, space, scientific research, development, technologies, scientific, colleagues, edge, scientists, rise, based, nasa, nation, balance, nuclear, produce, waste'\n",
      " '========================================================================================================================'\n",
      " 'Ideal Point = -1.0, Topic = 3: security, information, task, national, balance, homeland, task force, reserve, consume, rise, department, critical, homeland security, force, national security, threats, act, safety, threat, technology'\n",
      " 'Ideal Point = -0.5, Topic = 3: security, homeland, information, department, homeland security, national, balance, threats, rise, act, consume, critical, threat, national security, colleagues, ensure, task, systems, federal, reserve'\n",
      " 'Ideal Point = 0.0, Topic = 3: security, homeland, homeland security, department, information, threats, national, act, rise, ensure, balance, threat, federal, agencies, colleagues, intelligence, government, dhs, systems, cybersecurity'\n",
      " 'Ideal Point = 0.5, Topic = 3: security, homeland, homeland security, department, threats, terrorism, act, information, state, national, ensure, agencies, intelligence, federal, colleagues, cybersecurity, government, threat, rise, dhs'\n",
      " 'Ideal Point = 1.0, Topic = 3: security, terrorism, homeland, homeland security, department, state department, state, senior, threats, intelligence, agencies, act, help, ensure, cybersecurity, federal, attacks, colleagues, government, attack'\n",
      " '========================================================================================================================'\n",
      " 'Ideal Point = -1.0, Topic = 4: request, representatives, pleased, way, subject, dear, letter, conference, ordered, referred, reported, jurisdiction, hon, dc, commerce, addition, dc dear, matter, response, appointment'\n",
      " 'Ideal Point = -0.5, Topic = 4: representatives, dear, letter, dc, hon, request, subject, conference, dc dear, jurisdiction, letters, matter, understanding, balance, within, response, similar, appointment, copy, respect'\n",
      " 'Ideal Point = 0.0, Topic = 4: dear, letter, representatives, dc, hon, dc dear, letters, jurisdiction, subject, conference, request, matter, legislation, understanding, appreciate, within, balance, similar, write, writing'\n",
      " 'Ideal Point = 0.5, Topic = 4: dear, letter, dc, representatives, hon, dc dear, legislation, letters, appreciate, jurisdiction, writing, matter, understanding, within, subject, conference, waive, fall, balance, judiciary'\n",
      " 'Ideal Point = 1.0, Topic = 4: dc, dear, letter, representatives, legislation, hon, dc dear, writing, judiciary, appreciate, letters, measure, committees, included, waive, regarding, please, jurisdiction, appropriate, moves'\n",
      " '========================================================================================================================'\n",
      " 'Ideal Point = -1.0, Topic = 5: democrats, process, sham, elected, impeachment, closed, secret, due, american, duly elected, due process, behind, trump, transparency, closed doors, hearings, behind closed, majority, behind closed doors, fairness'\n",
      " 'Ideal Point = -0.5, Topic = 5: impeachment, process, trump, constitution, democrats, american, elected, power, branch, executive, article, impeach, constitutional, evidence, secret, sham, hearings, articles, closed, due'\n",
      " 'Ideal Point = 0.0, Topic = 5: constitution, impeachment, power, trump, branch, constitutional, executive, article, american, oath, executive branch, process, evidence, powers, impeach, country, defend, articles, election, political'\n",
      " 'Ideal Point = 0.5, Topic = 5: constitution, constitutional, power, branch, democracy, executive, law, duty, oath, responsibility, trump, impeachment, defend, article, government, protect, executive branch, country, uphold, actions'\n",
      " 'Ideal Point = 1.0, Topic = 5: democracy, constitution, responsibility, national security, law, constitutional, duty, protect, national, security, power, defend, executive, branch, oath, responsibilities, government, check, military, uphold'\n",
      " '========================================================================================================================'\n",
      " 'Ideal Point = -1.0, Topic = 6: opioid, district, drug, awareness, treatment, help, crisis, addiction, recovery, fight, health, abuse, lives, drugs, families, rise, disease, act, epidemic, firsthand'\n",
      " 'Ideal Point = -0.5, Topic = 6: health, opioid, treatment, crisis, help, disease, lives, abuse, drug, addiction, epidemic, rise, families, prevention, act, awareness, mental, communities, fight, substance'\n",
      " 'Ideal Point = 0.0, Topic = 6: health, treatment, disease, opioid, mental, crisis, help, lives, mental health, services, prevention, abuse, epidemic, research, percent, substance, care, cancer, rise, children'\n",
      " 'Ideal Point = 0.5, Topic = 6: health, mental, disease, treatment, care, mental health, children, services, medical, research, cancer, percent, crisis, public health, opioid, substance, help, prevention, lives, public'\n",
      " 'Ideal Point = 1.0, Topic = 6: health, hiv, care, mental, children, medical, mental health, public health, services, disease, likely, child, cancer, research, percent, maternal, disparities, treatment, social, access'\n",
      " '========================================================================================================================'\n",
      " 'Ideal Point = -1.0, Topic = 7: court, law, constitution, judge, protect, federal, trial, lawsuits, courts, supreme, lawyers, frivolous, supreme court, laws, constitutional, legal, state, cases, justice, citizen'\n",
      " 'Ideal Point = -0.5, Topic = 7: court, law, judge, supreme, justice, courts, supreme court, federal, constitution, legal, laws, cases, rights, criminal, trial, state, constitutional, lawyers, attorney, judicial'\n",
      " 'Ideal Point = 0.0, Topic = 7: court, justice, law, supreme, supreme court, courts, criminal, federal, judge, rights, legal, cases, attorney, laws, civil, state, judiciary, decision, constitutional, judicial'\n",
      " 'Ideal Point = 0.5, Topic = 7: court, justice, supreme, supreme court, criminal, courts, law, rights, federal, system, legal, attorney, civil, cases, criminal justice, judge, judiciary, laws, prison, general'\n",
      " 'Ideal Point = 1.0, Topic = 7: justice, court, incarceration, criminal, supreme, supreme court, system, criminal justice, mass, courts, mandatory, reform, justice department, offenses, rights, justice system, criminal justice system, incarcerated, civil, judiciary'\n",
      " '========================================================================================================================'\n",
      " 'Ideal Point = -1.0, Topic = 8: employees, employee, labor, balance, employers, workers, federal employees, union, hardworking, flexibility, private, workforce, employer, sector, private sector, colleagues, employment, job, businesses, hire'\n",
      " 'Ideal Point = -0.5, Topic = 8: employees, workers, labor, employee, employers, union, employer, workforce, pay, job, balance, employment, sector, workplace, hardworking, private, worker, colleagues, private sector, flexibility'\n",
      " 'Ideal Point = 0.0, Topic = 8: workers, employees, labor, employers, pay, union, employee, wage, act, employer, workplace, workforce, worker, job, wages, employment, paid, fair, unions, retirement'\n",
      " 'Ideal Point = 0.5, Topic = 8: workers, wage, labor, act, pay, wages, employers, minimum, fair, union, employees, minimum wage, workplace, worker, families, raise, fairness, rights, women, retirement'\n",
      " 'Ideal Point = 1.0, Topic = 8: wage, workers, wages, raise, act, minimum wage, minimum, gap, pay, families, rights, fair, income, economic, economy, women, paycheck, labor, fairness, conditions'\n",
      " '========================================================================================================================'\n",
      " 'Ideal Point = -1.0, Topic = 9: financial, services, regulations, community, regulatory, capital, credit, subcommittee, financial services, access, institutions, bank, unions, dodd, financial institutions, dream, act, american dream, credit unions, vice'\n",
      " 'Ideal Point = -0.5, Topic = 9: financial, services, credit, financial services, institutions, capital, bank, community, act, consumer, regulatory, dodd, financial institutions, regulations, access, consumers, loan, sec, loans, unions'\n",
      " 'Ideal Point = 0.0, Topic = 9: financial, financial services, consumer, credit, services, consumers, institutions, bank, loans, protection, act, loan, companies, capital, street, investors, financial institutions, dodd, sec, lending'\n",
      " 'Ideal Point = 0.5, Topic = 9: financial, consumer, consumers, protection, financial services, debt, loans, credit, wall, wall street, companies, loan, protect, street, protections, colleagues, services, institutions, predatory, bureau'\n",
      " 'Ideal Point = 1.0, Topic = 9: debt, financial, protections, predatory, consumer, consumers, practices, million, protect, wall, protection, fraud, wall street, profit, colleagues, corporate, student, loans, bad, millions'\n",
      " '========================================================================================================================'\n",
      " 'Ideal Point = -1.0, Topic = 10: economy, businesses, rise, american, economic, america, industry, important, jobs, world, growth, hardworking, companies, job creators, grow, usmca, district, trade, products, country'\n",
      " 'Ideal Point = -0.5, Topic = 10: economy, businesses, jobs, economic, american, growth, america, industry, trade, companies, world, country, grow, market, rise, create, job, manufacturing, nation, important'\n",
      " 'Ideal Point = 0.0, Topic = 10: jobs, economy, businesses, economic, american, growth, america, trade, create, companies, country, job, industry, market, percent, manufacturing, million, world, grow, investment'\n",
      " 'Ideal Point = 0.5, Topic = 10: jobs, economic, businesses, economy, create, growth, american, trade, creating, america, good, percent, workers, job, country, companies, million, sector, market, investment'\n",
      " 'Ideal Point = 1.0, Topic = 10: jobs, promises, unemployment, lowest, economic, create, businesses, creating, rate, economy, good, high, create jobs, trade, growth, workers, agenda, level, percent, sector'\n",
      " '========================================================================================================================'\n",
      " 'Ideal Point = -1.0, Topic = 11: law abiding, abiding, second, rights, carry, bear, state, citizens, constitutional, arms, law, constitutional rights, concealed, license, lines, defend, concealed carry, state lines, keep, driver license'\n",
      " 'Ideal Point = -0.5, Topic = 11: abiding, second, law abiding, gun, carry, background, state, shooting, rights, citizens, bear, check, concealed, firearms, law, violence, keep, firearm, guns, arms'\n",
      " 'Ideal Point = 0.0, Topic = 11: gun, violence, background, shooting, gun violence, guns, lives, check, checks, killed, act, americans, country, firearms, background checks, mass, carry, safety, background check, second'\n",
      " 'Ideal Point = 0.5, Topic = 11: violence, gun, gun violence, lives, background, killed, school, guns, children, mass, checks, safety, shooting, background checks, country, weapons, legislation, lost, act, check'\n",
      " 'Ideal Point = 1.0, Topic = 11: gun violence, violence, gun, school, lives, children, killed, mass, safety, violence prevention, epidemic, background, gun safety, checks, background checks, students, weapons, guns, assault, country'\n",
      " '========================================================================================================================'\n",
      " 'Ideal Point = -1.0, Topic = 12: illegal, secure, aliens, country, border, illegal aliens, illegal immigrants, citizens, illegally, laws, securing, drug, cartels, borders, immigration, illegal immigration, percent, security, sanctuary, southern'\n",
      " 'Ideal Point = -0.5, Topic = 12: border, illegal, secure, security, immigration, country, southern, borders, crisis, drug, illegally, southern border, border security, aliens, laws, drugs, immigrants, wall, patrol, american'\n",
      " 'Ideal Point = 0.0, Topic = 12: border, security, wall, children, immigration, southern, crisis, illegal, southern border, border security, borders, country, trump, patrol, customs, border patrol, families, agents, homeland, ice'\n",
      " 'Ideal Point = 0.5, Topic = 12: border, children, wall, administration, detention, border wall, families, policy, parents, child, asylum, security, homeland, separated, homeland security, conditions, trump, facilities, humanitarian, immigration'\n",
      " 'Ideal Point = 1.0, Topic = 12: children, child, parents, administration, detention, policy, separated, border, border wall, cruel, babies, conditions, separation, trump administration, fleeing, wall, families, mothers, family separation, asylum'\n",
      " '========================================================================================================================'\n",
      " 'Ideal Point = -1.0, Topic = 13: life, protection, protect, protection act, unborn, alive, born, born alive, act, pro, sanctity, abortion, innocent, survivors protection, survivors, survivors protection act, pro life, human, born alive abortion, alive abortion'\n",
      " 'Ideal Point = -0.5, Topic = 13: life, abortion, born, protection, alive, unborn, protect, pro, protection act, act, babies, baby, child, born alive, pro life, children, human, abortions, lives, survivors'\n",
      " 'Ideal Point = 0.0, Topic = 13: women, abortion, life, baby, planned, child, born, pregnancy, birth, babies, parenthood, pro, abortions, care, planned parenthood, alive, children, protection, unborn, pregnant'\n",
      " 'Ideal Point = 0.5, Topic = 13: women, reproductive, woman, health, pregnant, family, access, decisions, planned, pregnancy, care, planning, birth, women health, parenthood, planned parenthood, healthcare, reproductive health, colleagues, abortion'\n",
      " 'Ideal Point = 1.0, Topic = 13: women, access, reproductive, health, decisions, woman, family, healthcare, pregnant, reproductive health, planning, women health, services, dangerous, opposition, control, family planning, personal, planned, pregnancy'\n",
      " '========================================================================================================================'\n",
      " 'Ideal Point = -1.0, Topic = 14: responders, first responders, requested, flown, flag, close, family, americans, praying, life, military, passed, wife, university, friends, passed away, away, capitol, rise, lift'\n",
      " 'Ideal Point = -0.5, Topic = 14: family, life, wife, rise, passed, friends, away, served, community, friend, passed away, man, father, children, always, legacy, loved, remember, age, others'\n",
      " 'Ideal Point = 0.0, Topic = 14: family, life, rise, friend, wife, children, community, man, served, always, father, loved, away, friends, first, passed, son, remember, legacy, lives'\n",
      " 'Ideal Point = 0.5, Topic = 14: never, god, forget, bless, never forget, grateful, god bless, family, life, families, war, congressman, global, terrorism, district, conclusion, friend, american, troops, mother'\n",
      " 'Ideal Point = 1.0, Topic = 14: conclusion, terrorism, troops, global, war, god bless, bless, never forget, forget, god, grateful, american families, appreciate, never, families, congratulations, american, america, week, congressman'\n",
      " '========================================================================================================================'\n",
      " 'Ideal Point = -1.0, Topic = 15: communist, socialist, party, chinese communist party, chinese communist, china, communist party, chinese, never, freedom, destruction, government, rights, violence, world, religious, evil, human, country, actions'\n",
      " 'Ideal Point = -0.5, Topic = 15: rights, china, human, government, chinese, communist, freedom, human rights, party, world, anti, violence, religious, never, communist party, chinese communist, chinese communist party, country, jewish, citizens'\n",
      " 'Ideal Point = 0.0, Topic = 15: rights, human, human rights, government, freedom, world, anti, religious, china, violence, chinese, state, free, jewish, democracy, country, genocide, political, international, since'\n",
      " 'Ideal Point = 0.5, Topic = 15: human, human rights, rights, government, anti, world, freedom, crimes, political, rise, international, religious, abuses, state, including, violence, held, democracy, genocide, free'\n",
      " 'Ideal Point = 1.0, Topic = 15: human rights, human, rights, government, crimes, rise, anti, political, international, world, united, abuses, held, including, ethnic, freedom, brutal, journalists, message, accountability'\n",
      " '========================================================================================================================'\n",
      " 'Ideal Point = -1.0, Topic = 16: things, got, actually, lot, folks, something, thing, good, way, appreciate, let, really, never, put, came, especially, coming, different, tell, part'\n",
      " 'Ideal Point = -0.5, Topic = 16: things, got, something, lot, way, actually, really, let, thing, good, put, tell, much, talking, came, trying, never, folks, coming, part'\n",
      " 'Ideal Point = 0.0, Topic = 16: things, really, way, something, let, lot, got, thing, good, actually, put, much, tell, talking, country, trying, saying, point, money, came'\n",
      " 'Ideal Point = 0.5, Topic = 16: really, way, let, something, country, things, lot, much, talking, thing, got, put, good, tell, saying, whether, money, point, side, trying'\n",
      " 'Ideal Point = 1.0, Topic = 16: really, country, way, let, something, whether, terms, side, much, things, saying, important, matter, talking, course, money, lot, point, put, tell'\n",
      " '========================================================================================================================'\n",
      " 'Ideal Point = -1.0, Topic = 17: innovation, drug, cures, lifesaving, pharmacy, medical, patients, device, cures act, fewer, medical device, market, lower, commerce, pricing, transparency, prescription, drugs, access, bipartisan'\n",
      " 'Ideal Point = -0.5, Topic = 17: drug, drugs, prescription, lower, patients, cures, lifesaving, innovation, prices, costs, fda, market, prescription drug, medical, pharmacy, access, commerce, pricing, drug prices, cost'\n",
      " 'Ideal Point = 0.0, Topic = 17: drug, drugs, prescription, prices, lower, costs, prescription drug, cost, prescription drugs, fda, patients, drug prices, drug costs, companies, lifesaving, market, americans, cures, act, medicare'\n",
      " 'Ideal Point = 0.5, Topic = 17: drug, drugs, prescription, prices, costs, prescription drugs, cost, prescription drug, lower, drug costs, negotiate, companies, drug prices, medicare, legislation, fda, act, americans, pharmaceutical, drug administration'\n",
      " 'Ideal Point = 1.0, Topic = 17: drug, drugs, negotiate, prescription, prices, prescription drugs, costs, vision, drug costs, cost, legislation, prescription drug, big, medicare, afford, lower, companies, american, dental, colleagues'\n",
      " '========================================================================================================================'\n",
      " 'Ideal Point = -1.0, Topic = 18: agriculture, farmers, farm, ranchers, industry, producers, food, farming, farmer, agricultural, dairy, bureau, ag, farm bureau, feed, crops, cattle, farms, milk, district'\n",
      " 'Ideal Point = -0.5, Topic = 18: agriculture, farmers, farm, agricultural, ranchers, food, industry, producers, farmer, association, farming, dairy, bureau, farms, ag, national, crops, farm bureau, feed, america'\n",
      " 'Ideal Point = 0.0, Topic = 18: association, national, agriculture, farmers, farm, american, america, agricultural, coalition, organizations, council, alliance, national association, state, food, federation, center, ranchers, groups, institute'\n",
      " 'Ideal Point = 0.5, Topic = 18: association, national, center, organizations, coalition, american, network, alliance, council, advocacy, america, groups, justice, project, international, letter, foundation, federation, institute, organization'\n",
      " 'Ideal Point = 1.0, Topic = 18: center, organizations, network, justice, association, national, advocacy, coalition, cio, afl cio, afl, project, law center, organization, league, fund, social, alliance, united, foundation'\n",
      " '========================================================================================================================'\n",
      " 'Ideal Point = -1.0, Topic = 19: china, iran, terrorist, world, middle, terrorism, east, israel, united, terror, middle east, united states, states, nations, deal, obama, foreign, countries, america, iranian'\n",
      " 'Ideal Point = -0.5, Topic = 19: world, iran, united, united states, states, foreign, israel, middle, east, countries, terrorist, allies, china, nations, middle east, terrorism, security, russia, america, american'\n",
      " 'Ideal Point = 0.0, Topic = 19: united, world, foreign, united states, states, iran, war, security, allies, countries, administration, american, israel, peace, military, international, russia, east, nations, middle'\n",
      " 'Ideal Point = 0.5, Topic = 19: war, united, foreign, states, united states, world, security, iran, administration, allies, peace, countries, military, american, international, policy, conflict, russia, clear, global'\n",
      " 'Ideal Point = 1.0, Topic = 19: war, foreign, united, states, united states, security, ambassador, administration, humanitarian, peace, world, military, allies, american, conflict, saudi, crisis, countries, measure, international'\n",
      " '========================================================================================================================'\n",
      " 'Ideal Point = -1.0, Topic = 20: obamacare, choice, choices, mandates, government, options, reform, insurance, fits, healthcare, centered, competition, system, decisions, health, accounts, bureaucrats, patients, size fits, patient centered'\n",
      " 'Ideal Point = -0.5, Topic = 20: obamacare, insurance, health, healthcare, care, affordable, coverage, plans, costs, choice, plan, system, act, health care, americans, american, care act, premiums, health insurance, cost'\n",
      " 'Ideal Point = 0.0, Topic = 20: care, health, insurance, healthcare, affordable, coverage, care act, act, americans, affordable care, affordable care act, health care, health insurance, costs, american, medicaid, repeal, plan, conditions, preexisting'\n",
      " 'Ideal Point = 0.5, Topic = 20: care, affordable, affordable care, affordable care act, care act, health, coverage, insurance, act, americans, healthcare, million, medicaid, millions, preexisting, conditions, health care, lose, health insurance, protections'\n",
      " 'Ideal Point = 1.0, Topic = 20: affordable care act, affordable care, care, trumpcare, care act, affordable, million, millions, act, coverage, lose, americans, protections, medicaid, health, preexisting, republican, conditions, age tax, republicans'\n",
      " '========================================================================================================================'\n",
      " 'Ideal Point = -1.0, Topic = 21: defense, nation, funding, air, force, air force, rise, military, men, women, force base, air force base, national, national defense, base, continuing, uniform, resources, wing, provide'\n",
      " 'Ideal Point = -0.5, Topic = 21: defense, military, national, force, women, nation, men, armed, air, national defense, authorization, air force, funding, base, security, uniform, services, armed services, readiness, authorization act'\n",
      " 'Ideal Point = 0.0, Topic = 21: defense, military, national, armed, authorization, women, men, security, national security, force, national defense, armed services, services, forces, readiness, department, authorization act, troops, defense authorization, nation'\n",
      " 'Ideal Point = 0.5, Topic = 21: military, defense, national, armed, national security, authorization, security, servicemembers, forces, armed services, women, services, armed forces, department, men, pentagon, national defense, construction, veterans, troops'\n",
      " 'Ideal Point = 1.0, Topic = 21: veterans, military, defense, construction, military construction, armed, national, pentagon, national security, servicemembers, armed forces, authorization, security, military families, forces, armed services, department, overseas, services, women'\n",
      " '========================================================================================================================'\n",
      " 'Ideal Point = -1.0, Topic = 22: rural, rural america, communities, america, rural communities, areas, rural areas, provide, program, broadband, healthy, rise, help, important, families, local, access, americans, subcommittee, ensure'\n",
      " 'Ideal Point = -0.5, Topic = 22: rural, communities, program, areas, families, rural america, rural communities, america, access, help, food, provide, housing, rural areas, programs, income, assistance, americans, country, low'\n",
      " 'Ideal Point = 0.0, Topic = 22: rural, food, housing, families, income, communities, program, low, assistance, programs, access, low income, poverty, help, areas, children, urban, nutrition, snap, americans'\n",
      " 'Ideal Point = 0.5, Topic = 22: food, housing, income, low, low income, families, poverty, children, assistance, snap, program, rural, vulnerable, programs, poor, access, hunger, urban, nutrition, communities'\n",
      " 'Ideal Point = 1.0, Topic = 22: food, housing, income, low income, low, children, poor, poverty, school, hunger, vulnerable, snap, hungry, assistance, families, administration, struggling, farmers, put food, millions'\n",
      " '========================================================================================================================'\n",
      " 'Ideal Point = -1.0, Topic = 23: water, project, river, projects, fish, habitat, species, wildlife, corps, local, storage, reclamation, state, fishing, endangered, resources, coastal, district, engineers, coast'\n",
      " 'Ideal Point = -0.5, Topic = 23: water, fish, river, species, projects, environmental, state, project, wildlife, communities, corps, coastal, resources, local, endangered, clean, coast, district, fishing, act'\n",
      " 'Ideal Point = 0.0, Topic = 23: water, environmental, clean, communities, epa, state, environment, species, protect, act, health, coastal, air, fish, resources, protection, river, coast, drinking, clean water'\n",
      " 'Ideal Point = 0.5, Topic = 23: water, clean, environmental, air, health, environment, communities, epa, protect, drinking, drinking water, public health, public, clean air, colleagues, toxic, act, protection, state, clean water'\n",
      " 'Ideal Point = 1.0, Topic = 23: air, health, flint, public health, clean, water, environment, clean air, environmental, public, toxic, drinking water, drinking, protect, interior, communities, epa, colleagues, breathe, drink'\n",
      " '========================================================================================================================'\n",
      " 'Ideal Point = -1.0, Topic = 24: pass, move, rules, suspend, amend, purposes, certain, title, secretary, provide, code, act, amend title, states code, united states code, require, security act, direct, establish, federal'\n",
      " 'Ideal Point = -0.5, Topic = 24: move, pass, rules, suspend, purposes, amend, act, certain, title, code, provide, secretary, require, states code, united states code, amend title, pursuant, establish, security act, direct'\n",
      " 'Ideal Point = 0.0, Topic = 24: rules, move, pass, purposes, suspend, amend, act, certain, pursuant, title, code, require, provide, secretary, establish, states code, united states code, authorize, amend title, direct'\n",
      " 'Ideal Point = 0.5, Topic = 24: rules, move, pass, purposes, suspend, amend, act, pursuant, making, appropriations, fiscal, certain, require, ending, title, thereto, code, establish, authorize, section'\n",
      " 'Ideal Point = 1.0, Topic = 24: fiscal, appropriations, making, ending, rules, move, purposes, pass, continuing, suspend, pursuant, act, thereto, amend, designee, joint, section, clerk, require, clause'\n",
      " '========================================================================================================================'\n",
      " 'Ideal Point = -1.0, Topic = 25: media, obama, liberal, obama administration, article, clinton, uranium, apparently, evidence, crime, fbi, radical, information, mainstream, fisa, news, anyway, hillary, investigation, found'\n",
      " 'Ideal Point = -0.5, Topic = 25: media, investigation, obama, fbi, clinton, information, trump, general, evidence, department, justice, obama administration, article, attorney, news, mueller, former, administration, counsel, hillary'\n",
      " 'Ideal Point = 0.0, Topic = 25: trump, investigation, general, russia, fbi, administration, campaign, russian, information, intelligence, american, former, special, attorney, department, counsel, election, director, mueller, clinton'\n",
      " 'Ideal Point = 0.5, Topic = 25: trump, russian, russia, investigation, campaign, american, general, election, white, special, administration, intelligence, putin, democracy, government, foreign, officials, presidential, former, interference'\n",
      " 'Ideal Point = 1.0, Topic = 25: trump, democracy, russian, putin, white, tax returns, interference, russia, american, election, campaign, returns, security, vladimir putin, special, elections, investigation, vladimir, commission, general'\n",
      " '========================================================================================================================'\n",
      " 'Ideal Point = -1.0, Topic = 26: balance, friend, good, appreciate, reserve, good friend, consume, comments, colleague, colleagues, prepared, tonight, close, speakers, encourage, gentlewoman, general, sponsor, certainly, much'\n",
      " 'Ideal Point = -0.5, Topic = 26: friend, balance, good, good friend, consume, gentlewoman, appreciate, reserve, colleague, comments, speakers, close, prepared, minute, general, purpose, colleagues, leave, sponsor, certainly'\n",
      " 'Ideal Point = 0.0, Topic = 26: gentlewoman, friend, good friend, good, consume, balance, colleague, minute, distinguished, appreciate, subcommittee, speakers, purpose, comments, reserve, general, close, leave, prepared, author'\n",
      " 'Ideal Point = 0.5, Topic = 26: gentlewoman, distinguished, subcommittee, minute, friend, agencies, good friend, appropriations, good, colleague, consume, pleased, energy, purpose, chairwoman, labor, balance, remind, education, caucus'\n",
      " 'Ideal Point = 1.0, Topic = 26: agencies, appropriations, energy, pleased, subcommittee, distinguished, gentlewoman, labor, education, minute, human services, chairwoman, services education, services, human, caucus, commerce, foreign, senior, judiciary'\n",
      " '========================================================================================================================'\n",
      " 'Ideal Point = -1.0, Topic = 27: war, rise, army, nation, country, world, american, world war, home, safe, protect, men, military, served, veterans, first, sergeant, navy, serve, corps'\n",
      " 'Ideal Point = -0.5, Topic = 27: war, army, country, world war, nation, world, american, rise, served, military, men, sacrifice, first, home, women, sergeant, air, serve, corps, navy'\n",
      " 'Ideal Point = 0.0, Topic = 27: war, army, world war, served, american, country, world, military, nation, men, sacrifice, women, air, soldiers, rise, corps, marine, force, first, vietnam'\n",
      " 'Ideal Point = 0.5, Topic = 27: war, served, world war, army, military, american, sacrifice, country, world, men, nation, soldiers, iraq, vietnam, colleagues, brave, marine, women, force, died'\n",
      " 'Ideal Point = 1.0, Topic = 27: war, colleagues, served, world war, iraq, military, soldiers, army, sacrifice, facility, brave, american, died, vietnam, men, country, world, pleased, afghanistan, designate'\n",
      " '========================================================================================================================'\n",
      " 'Ideal Point = -1.0, Topic = 28: god, bless, god bless, trust, bible, week, national, nation, jesus, christ, lord, book, freedom, celebrate, history, pray, word, founding, america, prayer'\n",
      " 'Ideal Point = -0.5, Topic = 28: god, nation, bless, god bless, america, freedom, history, world, bible, country, american, liberty, week, americans, life, words, trust, never, hope, free'\n",
      " 'Ideal Point = 0.0, Topic = 28: nation, america, country, history, world, god, american, americans, freedom, words, liberty, values, life, free, hope, greatest, faith, principles, moral, live'\n",
      " 'Ideal Point = 0.5, Topic = 28: country, america, persons, rise, united, nation, justice, words, united states, person, bigotry, values, americans, world, american, history, hate, moral, liberty, states'\n",
      " 'Ideal Point = 1.0, Topic = 28: persons, bigotry, rise, united states, united, person, justice, hate, racism, tolerate, states, presidency, country, racist, america, white, proud, moral, ugly, values'\n",
      " '========================================================================================================================'\n",
      " 'Ideal Point = -1.0, Topic = 29: voted, rollcall, unavoidably detained, detained, unavoidably, unable, personal, due, explanation, personal explanation, votes, next week, roll, passage, series, cast, offered, recorded, schedule, act sponsored'\n",
      " 'Ideal Point = -0.5, Topic = 29: voted, rollcall, detained, unavoidably, unavoidably detained, due, unable, personal, votes, explanation, passage, personal explanation, roll, yes, recorded, offered, next week, final, missed, cast'\n",
      " 'Ideal Point = 0.0, Topic = 29: voted, rollcall, votes, due, detained, yes, unavoidably, unavoidably detained, unable, personal, recorded, passage, explanation, missed, roll, aye, question, offered, monday, tuesday'\n",
      " 'Ideal Point = 0.5, Topic = 29: voted, votes, rollcall, yes, wednesday, aye, due, tuesday, missed, recorded, monday, question, thursday, act, passage, detained, recommit, final passage, roll, unavoidably'\n",
      " 'Ideal Point = 1.0, Topic = 29: voted, votes, wednesday, yes, rollcall, act, tuesday, aye, monday, thursday, missed, suspension, question, recorded, recommit, announced, due, final passage, passage, legislative'\n",
      " '========================================================================================================================'\n",
      " 'Ideal Point = -1.0, Topic = 30: states, united, united states, post, located, postal, designate, government, street, facility, government reform, discharged, states postal, united states postal, oversight, reform, states capitol, united states capitol, state, road'\n",
      " 'Ideal Point = -0.5, Topic = 30: states, united, united states, post, located, postal, designate, government, facility, states postal, united states postal, street, discharged, america, reform, oversight, representatives, government reform, state, states government'\n",
      " 'Ideal Point = 0.0, Topic = 30: united, states, united states, post, located, postal, america, designate, government, facility, states postal, united states postal, representatives, colleagues, street, states government, united states government, reform, state, oversight'\n",
      " 'Ideal Point = 0.5, Topic = 30: united, united states, states, america, colleagues, post, world, representatives, postal, designate, located, government, facility, united states government, states government, united states postal, states postal, balance, state, pleased'\n",
      " 'Ideal Point = 1.0, Topic = 30: united states, united, states, america, colleagues, world, representatives, united states government, states government, balance, pass, pleased, post, american, state, consume, designate, tell, postal, united states postal'\n",
      " '========================================================================================================================'\n",
      " 'Ideal Point = -1.0, Topic = 31: legislation, bipartisan, act, colleagues, important, commonsense, piece, encourage, rise, introduced, leadership, help, reforms, colleague, balance, passed, bipartisan legislation, congressman, ensure, proud'\n",
      " 'Ideal Point = -0.5, Topic = 31: legislation, bipartisan, colleagues, act, important, balance, rise, piece, leadership, commonsense, consume, colleague, help, introduced, proud, ensure, encourage, step, congressman, passed'\n",
      " 'Ideal Point = 0.0, Topic = 31: legislation, bipartisan, colleagues, important, act, balance, consume, rise, leadership, proud, step, colleague, ensure, help, introduced, reserve, congressman, piece, passed, together'\n",
      " 'Ideal Point = 0.5, Topic = 31: legislation, bipartisan, balance, colleagues, important, act, consume, leadership, reserve, proud, step, rise, ensure, colleague, measure, help, first, pleased, together, aisle'\n",
      " 'Ideal Point = 1.0, Topic = 31: balance, bipartisan, legislation, colleagues, important, consume, measure, act, reserve, world, step, proud, hope, leadership, first, thanking, pleased, together, ensure, aisle'\n",
      " '========================================================================================================================'\n",
      " 'Ideal Point = -1.0, Topic = 32: education, students, skills, school, career, technical, programs, schools, week, workforce, program, technical education, based, opportunities, jobs, student, children, high, help, path'\n",
      " 'Ideal Point = -0.5, Topic = 32: education, students, school, schools, programs, skills, workforce, student, career, program, opportunities, high, technical, college, children, help, educational, teachers, training, learning'\n",
      " 'Ideal Point = 0.0, Topic = 32: education, students, school, schools, college, student, workforce, programs, high, skills, program, opportunities, training, educational, teachers, learning, help, children, higher, career'\n",
      " 'Ideal Point = 0.5, Topic = 32: education, students, school, college, schools, student, workforce, high, programs, higher, training, colleges, educational, institutions, universities, access, higher education, opportunities, learning, program'\n",
      " 'Ideal Point = 1.0, Topic = 32: students, education, college, school, secretary, schools, access, student, devos, colleges, higher, colleagues, institutions, universities, state, higher education, historically, high, training, workforce'\n",
      " '========================================================================================================================'\n",
      " 'Ideal Point = -1.0, Topic = 33: veterans, va, veteran, rise, department, care, heroes, nation, nation veterans, grateful, receive, program, act, secretary, military, best, accountability, supporting, congressman, serving'\n",
      " 'Ideal Point = -0.5, Topic = 33: veterans, va, veteran, care, department, rise, nation, program, receive, nation veterans, military, act, women, benefits, colleagues, heroes, services, deserve, ensure, served'\n",
      " 'Ideal Point = 0.0, Topic = 33: veterans, va, veteran, care, benefits, women, department, nation, colleagues, services, rise, deserve, military, program, ensure, receive, provide, servicemembers, act, help'\n",
      " 'Ideal Point = 0.5, Topic = 33: veterans, va, veteran, benefits, care, women, services, colleagues, deserve, provide, ensure, life, servicemembers, help, military, nation, country, program, access, healthcare'\n",
      " 'Ideal Point = 1.0, Topic = 33: veterans, va, veteran, benefits, life, burn, women, services, colleagues, provide, face, deserve, ensure, care, servicemembers, permanent, help, country, women veterans, lives'\n",
      " '========================================================================================================================'\n",
      " 'Ideal Point = -1.0, Topic = 34: businesses, trump, program, covid, speed, pandemic, keep, nation, americans, operation, america, help, together, paycheck, doors, employees, virus, district, country, vaccine'\n",
      " 'Ideal Point = -0.5, Topic = 34: covid, businesses, pandemic, help, americans, coronavirus, relief, crisis, keep, virus, nation, workers, american, program, country, act, america, families, economy, cares'\n",
      " 'Ideal Point = 0.0, Topic = 34: pandemic, covid, businesses, help, crisis, workers, relief, coronavirus, act, americans, families, health, virus, provide, american, economic, local, economy, needed, billion'\n",
      " 'Ideal Point = 0.5, Topic = 34: pandemic, covid, workers, health, act, crisis, testing, relief, families, coronavirus, help, heroes, businesses, billion, emergency, economic, local, heroes act, unemployment, provide'\n",
      " 'Ideal Point = 1.0, Topic = 34: testing, pandemic, health, workers, heroes act, heroes, act, emergency, tracing, covid, billion, unemployment, crisis, direct, families, legislation, governments, public health, relief, state'\n",
      " '========================================================================================================================'\n",
      " 'Ideal Point = -1.0, Topic = 35: thereto, signature, sent, state, election, votes, speech, officials, legislature, free speech, elections, presidential, states, passed, ballot, mail, state legislature, ballots, elected, candidate'\n",
      " 'Ideal Point = -0.5, Topic = 35: election, state, elections, voting, votes, officials, voters, ballot, states, sent, signature, presidential, voter, legislature, elected, ballots, speech, mail, thereto, free'\n",
      " 'Ideal Point = 0.0, Topic = 35: election, voting, elections, state, voters, voter, democracy, ballot, political, states, officials, votes, campaign, electoral, elected, system, americans, american, ballots, citizens'\n",
      " 'Ideal Point = 0.5, Topic = 35: democracy, voting, election, elections, voting rights, voter, voters, political, democratic, rights, voting rights act, act, americans, state, suppression, restore, protect, rights act, voter suppression, money'\n",
      " 'Ideal Point = 1.0, Topic = 35: democracy, voting rights, voting, voting rights act, suppression, voter suppression, election, rights act, elections, rights, political, voter, restore, act, voters, protect, democratic, money, interests, americans'\n",
      " '========================================================================================================================'\n",
      " 'Ideal Point = -1.0, Topic = 36: measure, land, forest, national, adoption, acres, management, area, lands, county, federal, state, property, local, forests, western, forest management, park, national forest, public'\n",
      " 'Ideal Point = -0.5, Topic = 36: land, national, lands, forest, area, acres, park, state, management, federal, public, local, adoption, balance, county, measure, property, resources, areas, natural'\n",
      " 'Ideal Point = 0.0, Topic = 36: land, national, lands, park, public, state, tribal, balance, federal, area, native, local, indian, resources, natural, forest, tribes, acres, public lands, historic'\n",
      " 'Ideal Point = 0.5, Topic = 36: national, land, tribal, native, lands, park, indian, colleagues, public, tribes, american, protect, natural, native american, balance, resources, act, historic, state, public lands'\n",
      " 'Ideal Point = 1.0, Topic = 36: tribal, colleagues, native, american, protect, native american, national, indian, protecting, tribes, land, cultural, act, park, lands, natural, sovereignty, public, historic, americans'\n",
      " '========================================================================================================================'\n",
      " 'Ideal Point = -1.0, Topic = 37: act, jobs act, businesses, tax, jobs, district, paychecks, reform, employees, tax reform, code, unemployment, keep, economy, standard, rates, historic, tax code, rate, hard earned'\n",
      " 'Ideal Point = -0.5, Topic = 37: tax, jobs, reform, act, tax reform, families, taxes, jobs act, businesses, american, code, economy, cuts, americans, district, money, percent, rate, family, tax code'\n",
      " 'Ideal Point = 0.0, Topic = 37: tax, cuts, taxes, families, american, percent, americans, pay, middle, class, cut, tax cuts, jobs, income, middle class, money, reform, trillion, america, economy'\n",
      " 'Ideal Point = 0.5, Topic = 37: tax, corporations, republican, budget, class, trillion, middle, cut, middle class, republicans, cuts, wealthy, debt, wealthiest, percent, pay, medicare, taxes, scam, deficit'\n",
      " 'Ideal Point = 1.0, Topic = 37: corporations, tax scam, scam, wealthiest, republican, budget, billionaires, medicare, republicans, medicaid, wealthy, trillion, debt, tax, deal, better deal, republican tax, deficit, social security, class'\n",
      " '========================================================================================================================'\n",
      " 'Ideal Point = -1.0, Topic = 38: fire, forests, district, trees, state, disaster, help, smoke, lives, counties, wildfires, fires, flood, burned, homes, way, communities, devastating, seen, wildfire'\n",
      " 'Ideal Point = -0.5, Topic = 38: disaster, fire, help, district, hurricane, homes, state, communities, lives, flood, wildfires, emergency, devastating, fires, damage, disasters, storm, lost, relief, rise'\n",
      " 'Ideal Point = 0.0, Topic = 38: disaster, hurricane, disasters, help, emergency, homes, communities, relief, flood, recovery, islands, hurricanes, damage, natural, lives, fire, harvey, state, devastating, district'\n",
      " 'Ideal Point = 0.5, Topic = 38: virgin, islands, disaster, virgin islands, disasters, hurricane, hurricanes, natural, relief, natural disasters, recovery, emergency, maria, americans, help, assistance, homes, communities, harvey, damage'\n",
      " 'Ideal Point = 1.0, Topic = 38: virgin, virgin islands, islands, americans, disaster, disasters, territories, supplemental, natural disasters, hurricane, hurricanes, maria, natural, government, caribbean, relief, recovery, assistance, needs, fellow'\n",
      " '========================================================================================================================'\n",
      " 'Ideal Point = -1.0, Topic = 39: rise, women, law, enforcement, law enforcement, men, line, sheriff, department, police, county, families, officers, deputy, blue, county sheriff, safe, protect, communities, sacrifice'\n",
      " 'Ideal Point = -0.5, Topic = 39: enforcement, law, law enforcement, police, officers, line, department, rise, communities, protect, women, men, safe, sheriff, lives, safety, duty, local, county, families'\n",
      " 'Ideal Point = 0.0, Topic = 39: enforcement, law enforcement, law, police, officers, local, communities, protect, lives, first, department, line, responders, community, first responders, safety, police officers, law enforcement officers, enforcement officers, duty'\n",
      " 'Ideal Point = 0.5, Topic = 39: enforcement, law enforcement, police, law, officers, policing, local, responders, floyd, first responders, first, justice, police officers, lives, death, communities, policing act, protect, community, act'\n",
      " 'Ideal Point = 1.0, Topic = 39: policing, policing act, enforcement, floyd, police, law enforcement, floyd justice, law, officers, lives matter, death, act, brutality, trust, justice, responders, local, first responders, first, police officers'\n",
      " '========================================================================================================================'\n",
      " 'Ideal Point = -1.0, Topic = 40: budget, spending, debt, national, trillion, national debt, fiscal, balanced, grandchildren, generations, children, spend, balanced budget, balance, control, responsibility, deficit, national security, mandatory, deficits'\n",
      " 'Ideal Point = -0.5, Topic = 40: budget, spending, debt, trillion, national, fiscal, balanced, national debt, balance, spend, children, generations, grandchildren, balanced budget, deficit, percent, mandatory, government, federal, control'\n",
      " 'Ideal Point = 0.0, Topic = 40: debt, spending, budget, trillion, balance, percent, next, fiscal, security, balanced, spend, national, deficit, federal, government, social, mandatory, path, within, national debt'\n",
      " 'Ideal Point = 0.5, Topic = 40: actually, math, society, growth, sisters, tax, brothers, technology, economic, couple, sort, healthcare, turns, things, data, economy, social, social security, promises, population'\n",
      " 'Ideal Point = 1.0, Topic = 40: society, tax, sisters, brothers, math, technology, actually, growth, sort, tax reform, turns, couple, healthcare, economic growth, labor force, labor, data, immigration, walk, economic'\n",
      " '========================================================================================================================'\n",
      " 'Ideal Point = -1.0, Topic = 41: aviation, aircraft, air, transportation, flight, traveling, faa, airport, commercial, travel, fly, safety, airports, traffic, flights, motor, flying, airlines, carrier, pilot'\n",
      " 'Ideal Point = -0.5, Topic = 41: air, aviation, transportation, aircraft, flight, airport, faa, traffic, safety, airports, travel, traveling, fly, commercial, flights, airlines, passengers, flying, federal, passenger'\n",
      " 'Ideal Point = 0.0, Topic = 41: federal, government, air, shutdown, employees, transportation, airport, traffic, aviation, pay, safety, federal employees, faa, airports, flight, federal workers, travel, tsa, district, end'\n",
      " 'Ideal Point = 0.5, Topic = 41: government, shutdown, federal, pay, employees, trump, federal employees, workers, reopen, government shutdown, trump shutdown, federal government, open, end, shut, federal workers, security, american, paid, paycheck'\n",
      " 'Ideal Point = 1.0, Topic = 41: trump, government, shutdown, federal, trump shutdown, pay, employees, reopen, workers, government shutdown, open, federal employees, federal government, shut, border security, democrats, security, end, paycheck, wall'\n",
      " '========================================================================================================================'\n",
      " 'Ideal Point = -1.0, Topic = 42: quo, status quo, status, verify, merit, cards, system, citizenship, visa, american dream, country, program, american, based, legal, card, legal status, dream, daca, give'\n",
      " 'Ideal Point = -0.5, Topic = 42: status, quo, status quo, country, american, dream, citizenship, immigration, system, daca, american dream, legal, program, immigrants, visa, verify, families, merit, permanent, cards'\n",
      " 'Ideal Point = 0.0, Topic = 42: status, country, immigration, dream, immigrants, american, daca, dreamers, families, act, trump, children, citizenship, immigrant, american dream, legal, america, bring, home, administration'\n",
      " 'Ideal Point = 0.5, Topic = 42: trump, immigration, dreamers, immigrants, country, dream, immigrant, ban, act, families, dream act, daca, american, fear, children, deportation, status, home, america, undocumented'\n",
      " 'Ideal Point = 1.0, Topic = 42: trump, dreamers, ban, immigrants, immigrant, dream act, immigration, deportation, muslim, act, country, dream, fear, undocumented, families, muslim ban, children, daca, thousands, communities'\n",
      " '========================================================================================================================'\n",
      " 'Ideal Point = -1.0, Topic = 43: rise, county, community, congratulate, students, district, high, school, state, dedication, best, award, high school, recently, congratulations, proud, outstanding, first, team, named'\n",
      " 'Ideal Point = -0.5, Topic = 43: rise, community, county, school, district, state, congratulate, high, first, proud, high school, team, best, award, dedication, recently, university, leadership, outstanding, congratulations'\n",
      " 'Ideal Point = 0.0, Topic = 43: community, rise, university, school, first, county, district, state, team, high, proud, congratulate, national, served, leadership, history, high school, since, director, board'\n",
      " 'Ideal Point = 0.5, Topic = 43: university, community, first, history, served, school, born, state, district, center, board, rise, county, former, director, team, national, dr, american, central'\n",
      " 'Ideal Point = 1.0, Topic = 43: born, orlando, university, caribbean, american, social, orange, jr, former, co, history, miami, activist, attended, graham, general, heritage, community, served, honoring'\n",
      " '========================================================================================================================'\n",
      " 'Ideal Point = -1.0, Topic = 44: victims, human, trafficking, human trafficking, children, sex, law, child, victim, enforcement, crimes, act, justice, end, slavery, modern, fight, crime, sexual, abuse'\n",
      " 'Ideal Point = -0.5, Topic = 44: victims, trafficking, human, children, human trafficking, sexual, sex, child, violence, women, victim, law, abuse, justice, crimes, crime, act, assault, enforcement, sexual assault'\n",
      " 'Ideal Point = 0.0, Topic = 44: victims, sexual, violence, trafficking, women, children, assault, human, abuse, domestic, human trafficking, sex, sexual assault, victim, child, domestic violence, crime, justice, crimes, survivors'\n",
      " 'Ideal Point = 0.5, Topic = 44: violence, sexual, women, victims, assault, domestic, survivors, abuse, domestic violence, trafficking, sexual assault, children, harassment, human, women act, victim, crime, girls, child, human trafficking'\n",
      " 'Ideal Point = 1.0, Topic = 44: violence, sexual, women, survivors, domestic, assault, domestic violence, victims, women act, abuse, sexual assault, harassment, sexual violence, partner, reauthorization, trafficking, let, sexual harassment, dating, intimate'\n",
      " '========================================================================================================================'\n",
      " 'Ideal Point = -1.0, Topic = 45: energy, natural, production, gas, oil, reliable, affordable, electricity, natural gas, power, american energy, resources, jobs, american, percent, coal, commerce, source, domestic, energy production'\n",
      " 'Ideal Point = -0.5, Topic = 45: energy, gas, natural, oil, power, production, natural gas, electricity, emissions, climate, carbon, commerce, jobs, coal, clean, reliable, percent, resources, american, fuel'\n",
      " 'Ideal Point = 0.0, Topic = 45: energy, climate, change, climate change, gas, power, oil, clean, carbon, en, emissions, natural, bloc, en bloc, fuel, commerce, environment, colleagues, renewable, world'\n",
      " 'Ideal Point = 0.5, Topic = 45: climate, change, climate change, energy, en, clean, bloc, clean energy, crisis, en bloc, gas, planet, climate crisis, carbon, global, renewable, world, efficiency, renewable energy, balance'\n",
      " 'Ideal Point = 1.0, Topic = 45: change, climate, climate change, crisis, climate crisis, planet, energy, science, clean energy, threat, en, warming, pollution, bloc, global, trump, en bloc, efficiency, combat, effects'\n",
      " '========================================================================================================================'\n",
      " 'Ideal Point = -1.0, Topic = 46: taxpayer, dollars, program, taxpayers, money, funds, funding, taxpayer dollars, fund, billion, tax dollars, million, cost, federal, spent, government, since, used, american taxpayer, project'\n",
      " 'Ideal Point = -0.5, Topic = 46: funding, dollars, program, taxpayer, funds, billion, fund, million, money, federal, taxpayers, programs, taxpayer dollars, government, cost, appropriations, infrastructure, projects, funded, spent'\n",
      " 'Ideal Point = 0.0, Topic = 46: funding, funds, billion, program, million, fund, programs, dollars, federal, appropriations, money, budget, taxpayer, infrastructure, fiscal, increase, spending, government, additional, projects'\n",
      " 'Ideal Point = 0.5, Topic = 46: funding, billion, programs, funds, budget, million, appropriations, program, fund, investments, fiscal, spending, federal, provides, increase, critical, includes, infrastructure, provide, additional'\n",
      " 'Ideal Point = 1.0, Topic = 46: families, funding, education, investments, health, defense, budget, cuts, nondefense, programs, critical, appropriations, services, billion, includes, labor, million, research, spending, funds'\n",
      " '========================================================================================================================'\n",
      " 'Ideal Point = -1.0, Topic = 47: democrat, aisle, political, side, colleagues, democrats, politics, american, solutions, opposition, partisan, bipartisan, together, let, democratic, real, law, put, solve, unfortunately'\n",
      " 'Ideal Point = -0.5, Topic = 47: democrats, aisle, side, colleagues, bipartisan, american, republicans, political, democrat, together, partisan, let, majority, democratic, republican, politics, opposition, put, way, body'\n",
      " 'Ideal Point = 0.0, Topic = 47: democrats, republicans, republican, bipartisan, majority, aisle, side, colleagues, american, together, let, democratic, process, partisan, way, pass, passed, legislation, government, question'\n",
      " 'Ideal Point = 0.5, Topic = 47: republican, republicans, majority, bipartisan, democrats, pass, process, legislation, passed, question, way, rules, bring, let, together, aisle, previous, government, friends, republican colleagues'\n",
      " 'Ideal Point = 1.0, Topic = 47: republican, ought, republicans, majority, republican leadership, closed, republican colleagues, act, pass, keep, bipartisan, mcconnell, republican majority, question, rules, bring, previous question, process, frankly, legislation'\n",
      " '========================================================================================================================'\n",
      " 'Ideal Point = -1.0, Topic = 48: civil, women, rights, history, american, civil war, equal, movement, state, civil rights, nation, district, african, martin, centennial, statehood, dr, african american, nation capital, equality'\n",
      " 'Ideal Point = -0.5, Topic = 48: civil, women, rights, american, history, african, equal, civil rights, african american, movement, nation, equality, americans, state, martin, discrimination, dr, district, luther, civil war'\n",
      " 'Ideal Point = 0.0, Topic = 48: rights, civil, african, women, civil rights, american, african american, equal, americans, equality, history, discrimination, nation, color, racial, movement, african americans, country, justice, first'\n",
      " 'Ideal Point = 0.5, Topic = 48: african, rights, color, civil, civil rights, americans, justice, african american, discrimination, african americans, caucus, equality, women, american, racial, equal, white, leadership, country, nation'\n",
      " 'Ideal Point = 1.0, Topic = 48: color, caucus, justice, african, leadership, african americans, tonight, congresswoman, rights, americans, discrimination, racial, civil rights, community, african american, lgbtq, communities, white, equality, civil'\n",
      " '========================================================================================================================'\n",
      " 'Ideal Point = -1.0, Topic = 49: care, dr, medical, healthcare, health, services, hospital, patients, providers, center, provide, hospitals, practice, providing, patient, centers, healthcare providers, facilities, state, physician'\n",
      " 'Ideal Point = -0.5, Topic = 49: care, medical, health, healthcare, services, hospital, centers, patients, providers, dr, hospitals, center, provide, children, patient, providing, community, program, doctors, access'\n",
      " 'Ideal Point = 0.0, Topic = 49: health, care, medical, healthcare, centers, children, services, program, community, hospital, providers, patients, hospitals, health centers, community health, provide, nursing, children health, center, doctors'\n",
      " 'Ideal Point = 0.5, Topic = 49: health, children, program, medical, community, centers, care, children health, health centers, community health, insurance program, insurance, healthcare, community health centers, children health insurance, health insurance, health insurance program, services, nursing, funding'\n",
      " 'Ideal Point = 1.0, Topic = 49: insurance, children, children health, insurance program, program, health insurance, community health, health, community, health centers, health insurance program, children health insurance, community health centers, centers, million children, fund, medical, funding, care, healthcare'\n",
      " '========================================================================================================================']\n",
      "\n",
      "\n"
     ]
    }
   ],
   "source": [
    "utils.print_topics(objective_topic_loc, \n",
    "                   objective_topic_scale, \n",
    "                   ideological_topic_loc, \n",
    "                   ideological_topic_scale, \n",
    "                   vocabulary, \n",
    "                   20)"
   ]
  },
  {
   "cell_type": "code",
   "execution_count": 46,
   "metadata": {
    "scrolled": true,
    "tags": []
   },
   "outputs": [
    {
     "name": "stdout",
     "output_type": "stream",
     "text": [
      "['Ideal Point = -1.0, Topic = 0: federal, colleagues, government, bureaucrats, act, federal government, reserve, process, regulations, regulatory, overreach, administration, epa, tape, red tape, balance, obama, commonsense, previous administration, current, red, bureaucratic, agency, simply, agencies, requires, accountability, cost, consume, obama administration, legislation, however, bureaucracy, authority, law, unelected, bipartisan, ensure, regulation, american, provide, costs, passed, burdensome, burdens, power, rise, transparency, accountable, state'\n",
      " 'Ideal Point = -0.5, Topic = 0: federal, act, government, process, reserve, balance, colleagues, administration, current, regulations, legislation, law, federal government, agency, agencies, requires, however, consume, regulatory, provide, simply, ensure, authority, public, accountability, information, cost, requirements, already, required, transparency, important, currently, require, clear, costs, concerns, state, ability, regulation, rise, obama, commonsense, rules, data, necessary, first, department, changes, policy'\n",
      " 'Ideal Point = 0.0, Topic = 0: federal, act, process, reserve, balance, law, government, legislation, public, current, provide, information, ensure, however, requires, administration, consume, agencies, require, agency, requirements, required, including, already, concerns, simply, ability, authority, regulations, changes, based, currently, clear, rules, necessary, certain, policy, important, existing, states, standards, colleagues, system, data, provision, department, first, result, accountability, oversight'\n",
      " 'Ideal Point = 0.5, Topic = 0: public, law, federal, act, including, process, information, balance, legislation, require, reserve, provide, current, ensure, required, requirements, concerns, however, opposition, safety, already, based, ability, states, changes, oppose, consume, requires, undermine, certain, agencies, existing, agency, standards, currently, provision, policy, government, example, rules, clear, protections, necessary, reasons, effect, enforcement, whether, significant, administration, used'\n",
      " 'Ideal Point = 1.0, Topic = 0: undermine, including, public, opposition, enforcement, law, safety, information, require, oppose, critical, reasons, legislation, evidence, serious, required, balance, persons, provide, concerns, requirements, process, based, states, act, federal, protections, ensure, ability, already, concerned, effect, likely, reserve, changes, addition, prohibit, current, enacted, example, however, strongly, protect, certain, existing, provision, standard, majority, standards, basis'\n",
      " '========================================================================================================================'\n",
      " 'Ideal Point = -1.0, Topic = 1: social, social security, internet, security, communications, fcc, online, commission, data, privacy, information, consumers, media, deployment, phone, americans, broadband, technology, calls, social media, social security administration, personal, providers, security administration, services, radio, digital, communications commission, theft, identity, federal communications commission, federal communications, telephone, bad, consumer, telecommunications, fraud, mobile, network, commerce, card, speed, high speed, protecting, phones, cell, id, content, protect, protected'\n",
      " 'Ideal Point = -0.5, Topic = 1: social, internet, communications, social security, fcc, online, security, information, privacy, commission, americans, phone, data, media, consumers, broadband, social media, calls, personal, digital, providers, identity, theft, technology, communications commission, federal communications commission, federal communications, protect, consumer, fraud, deployment, mobile, telephone, content, colleagues, balance, services, social security administration, radio, commerce, access, telecommunications, numbers, security administration, phones, personal information, identity theft, act, cell, protecting'\n",
      " 'Ideal Point = 0.0, Topic = 1: internet, social, information, communications, online, americans, fcc, phone, social security, privacy, commission, broadband, media, security, data, social media, personal, consumers, calls, digital, identity, providers, protect, theft, colleagues, access, balance, content, act, federal communications commission, federal communications, communications commission, numbers, technology, consumer, personal information, net, neutrality, fraud, irs, commerce, phones, mobile, identity theft, open, email, free, telephone, protecting, cell'\n",
      " 'Ideal Point = 0.5, Topic = 1: internet, information, online, social, americans, communications, phone, broadband, colleagues, commission, privacy, fcc, personal, protect, social media, media, calls, access, data, digital, identity, consumers, act, social security, providers, email, theft, balance, open, security, net, neutrality, numbers, content, personal information, platforms, irs, free, sensitive, consumer, save, trade commission, federal communications, federal trade, used, federal trade commission, federal communications commission, communications commission, scams, protections'\n",
      " 'Ideal Point = 1.0, Topic = 1: internet, information, online, americans, colleagues, phone, communications, access, protect, social, act, email, broadband, open, sensitive, personal, commission, privacy, social media, calls, platforms, digital, websites, balance, media, identity, net, data, neutrality, fcc, sell, american, consumers, numbers, emails, free, providers, save, personal information, theft, used, content, stop, federal, protections, irs, federal trade commission, federal trade, trade commission, simply'\n",
      " '========================================================================================================================'\n",
      " 'Ideal Point = -1.0, Topic = 2: research, technology, science, space, national, science space, energy, world, department, advanced, basic, next, nuclear, innovation, american, develop, private, next generation, development, leadership, vice, generation, doe, subcommittee, private sector, data, sector, technologies, america, high, scientific, commercial, moon, encourage, edge, expertise, innovative, facilities, lead, nuclear waste, mission, cutting, computing, source, industry, developing, authorizes, discovery, capabilities, innovation act'\n",
      " 'Ideal Point = -0.5, Topic = 2: research, technology, science, space, innovation, national, energy, development, advanced, nuclear, science space, world, technologies, private, develop, next, scientific, department, leadership, generation, edge, basic, subcommittee, next generation, private sector, sector, innovative, doe, american, commercial, scientists, cutting, nasa, data, america, cutting edge, nuclear waste, developing, moon, expertise, foundation, mission, high, innovation act, industry, advance, facility, facilities, laboratory, waste'\n",
      " 'Ideal Point = 0.0, Topic = 2: research, technology, science, space, innovation, development, national, technologies, nuclear, energy, advanced, scientific, edge, scientists, science space, private, world, nasa, develop, innovative, cutting, cutting edge, generation, leadership, next, foundation, colleagues, commercial, waste, sector, subcommittee, advance, researchers, technological, private sector, developing, innovation act, nuclear waste, facility, sciences, department, engineering, next generation, laboratory, mission, understanding, commerce, industry, national science, program'\n",
      " 'Ideal Point = 0.5, Topic = 2: research, technology, science, space, innovation, development, technologies, scientific, edge, national, nuclear, scientists, advanced, energy, nasa, colleagues, scientific research, cutting edge, foundation, cutting, waste, innovative, technological, researchers, private, sciences, understanding, rise, nation, advance, commerce, balance, potential, commercial, science space, artificial, engineering, national science, world, earth, based, facility, test, develop, developing, generation, leadership, program, innovation act, manufacturing'\n",
      " 'Ideal Point = 1.0, Topic = 2: research, technology, science, innovation, space, scientific research, development, technologies, scientific, colleagues, edge, scientists, rise, based, nasa, nation, balance, nuclear, produce, waste, national, technological, understanding, foundation, manufacturing, cutting edge, researchers, advanced, sciences, commerce, potential, energy, cutting, earth, artificial, innovative, test, academies, decades, enable, partnerships, advance, storage, range, global, research development, national science, engineering, program, stored'\n",
      " '========================================================================================================================'\n",
      " 'Ideal Point = -1.0, Topic = 3: security, information, task, national, balance, homeland, task force, reserve, consume, rise, department, critical, homeland security, force, national security, threats, act, safety, threat, technology, sharing, systems, protect, colleagues, bad actors, tools, ensure, federal, legislation, important, agencies, private, dhs, introduced, government, infrastructure, actors, develop, operations, vital, sector, includes, data, cyber, improve, foreign, intelligence, cybersecurity, program, safe'\n",
      " 'Ideal Point = -0.5, Topic = 3: security, homeland, information, department, homeland security, national, balance, threats, rise, act, consume, critical, threat, national security, colleagues, ensure, task, systems, federal, reserve, agencies, technology, dhs, government, task force, intelligence, sharing, protect, cybersecurity, important, tools, cyber, legislation, program, infrastructure, develop, improve, data, force, private, foreign, sector, nation, requires, including, identify, secretary, secure, operations, actors'\n",
      " 'Ideal Point = 0.0, Topic = 3: security, homeland, homeland security, department, information, threats, national, act, rise, ensure, balance, threat, federal, agencies, colleagues, intelligence, government, dhs, systems, cybersecurity, consume, critical, national security, state, program, cyber, technology, requires, terrorism, help, important, secure, attacks, terrorist, nation, including, legislation, improve, reserve, develop, protect, sharing, response, risk, data, infrastructure, identify, secretary, within, foreign'\n",
      " 'Ideal Point = 0.5, Topic = 3: security, homeland, homeland security, department, threats, terrorism, act, information, state, national, ensure, agencies, intelligence, federal, colleagues, cybersecurity, government, threat, rise, dhs, help, requires, attacks, program, balance, systems, terrorist, cyber, secure, national security, critical, consume, require, response, attack, nation, including, within, risk, technology, resources, better, important, improve, state department, provide, secretary, identify, activities, develop'\n",
      " 'Ideal Point = 1.0, Topic = 3: security, terrorism, homeland, homeland security, department, state department, state, senior, threats, intelligence, agencies, act, help, ensure, cybersecurity, federal, attacks, colleagues, government, attack, require, terrorist, requires, information, national, dhs, policies, threat, program, rise, range, measure, secure, cyber, response, domestic, systems, within, better, regarding, wide, community, resources, nation, including, directs, risk, assessment, annual, civil liberties'\n",
      " '========================================================================================================================'\n",
      " 'Ideal Point = -1.0, Topic = 4: request, representatives, pleased, way, subject, dear, letter, conference, ordered, referred, reported, jurisdiction, hon, dc, commerce, addition, dc dear, matter, response, appointment, copy, understanding, balance, respect, letters, similar, within, contained, ways, means, subject matter, similar legislation, precedent, write, referrals, interest, mutual, concerning, cooperation, discharge, affects, serve, represented, reserve, matters, energy, seek, referral, scheduled, act'\n",
      " 'Ideal Point = -0.5, Topic = 4: representatives, dear, letter, dc, hon, request, subject, conference, dc dear, jurisdiction, letters, matter, understanding, balance, within, response, similar, appointment, copy, respect, write, contained, way, appreciate, legislation, similar legislation, commerce, referred, subject matter, means, fall, matters, ways, mutual, reserve, act, pleased, consume, concerning, conferees, seek, addition, writing, waive, interest, moves, involving, ordered, finally, jurisdictional'\n",
      " 'Ideal Point = 0.0, Topic = 4: dear, letter, representatives, dc, hon, dc dear, letters, jurisdiction, subject, conference, request, matter, legislation, understanding, appreciate, within, balance, similar, write, writing, fall, response, contained, waive, respect, similar legislation, appointment, copy, conferees, matters, act, moves, consume, reserve, please, mutual, subject matter, exchange, regarding, appropriate, means, issues, included, jurisdictional, concerning, fall within, seek, ways, expeditiously, committees'\n",
      " 'Ideal Point = 0.5, Topic = 4: dear, letter, dc, representatives, hon, dc dear, legislation, letters, appreciate, jurisdiction, writing, matter, understanding, within, subject, conference, waive, fall, balance, judiciary, write, similar, included, moves, request, please, regarding, appropriate, committees, measure, conferees, contained, act, consume, issues, exchange, matters, appropriately, response, similar legislation, reserve, dc hon, fall within, legislative, jurisdictional, respect, takes, consulted, remaining, mutual'\n",
      " 'Ideal Point = 1.0, Topic = 4: dc, dear, letter, representatives, legislation, hon, dc dear, writing, judiciary, appreciate, letters, measure, committees, included, waive, regarding, please, jurisdiction, appropriate, moves, fall, matter, understanding, within, appropriately, spirit, issues, write, dc hon, legislative, balance, exchange, others, conferees, consulted, similar, takes, conference, subject, act, consume, willing, fall within, continuing, objection, foreign, behalf, remaining, legislation moves, contained'\n",
      " '========================================================================================================================'\n",
      " 'Ideal Point = -1.0, Topic = 5: democrats, process, sham, elected, impeachment, closed, secret, due, american, duly elected, due process, behind, trump, transparency, closed doors, hearings, behind closed, majority, behind closed doors, fairness, doors, charade, impeachment process, duly, precedent, constitution, usmca, pro, americans, since, impeach, body, inquiry, power, instead, based, democrat, history, articles, branch, fair, partisan, facts, evidence, quid pro, chamber, quid, election, article, pro quo'\n",
      " 'Ideal Point = -0.5, Topic = 5: impeachment, process, trump, constitution, democrats, american, elected, power, branch, executive, article, impeach, constitutional, evidence, secret, sham, hearings, articles, closed, due, election, inquiry, facts, body, executive branch, majority, powers, precedent, history, oath, due process, duly elected, representatives, behind, witnesses, authority, duly, republic, fair, colleagues, since, fairness, political, pro, doors, country, americans, nation, based, impeachment inquiry'\n",
      " 'Ideal Point = 0.0, Topic = 5: constitution, impeachment, power, trump, branch, constitutional, executive, article, american, oath, executive branch, process, evidence, powers, impeach, country, defend, articles, election, political, witnesses, law, duty, representatives, clear, authority, facts, government, inquiry, elected, colleagues, actions, democracy, question, body, uphold, rise, foreign, responsibility, republic, nation, abuse, history, america, capitol, judiciary, vice, section, hold, ukraine'\n",
      " 'Ideal Point = 0.5, Topic = 5: constitution, constitutional, power, branch, democracy, executive, law, duty, oath, responsibility, trump, impeachment, defend, article, government, protect, executive branch, country, uphold, actions, national security, clear, foreign, powers, national, security, political, question, evidence, witnesses, rise, representatives, responsibilities, election, american, authority, military, articles, white, america, impeach, personal, check, abuse, section, capitol, ukraine, judiciary, chief, framers'\n",
      " 'Ideal Point = 1.0, Topic = 5: democracy, constitution, responsibility, national security, law, constitutional, duty, protect, national, security, power, defend, executive, branch, oath, responsibilities, government, check, military, uphold, foreign, actions, country, personal, chief, white, clear, executive branch, coequal, framers, question, article, trump, rise, attack, domestic, powers, political, military aid, favor, oversight, impeached, subpoenas, threat, choice, incited, impeachment, put, whether, abused'\n",
      " '========================================================================================================================'\n",
      " 'Ideal Point = -1.0, Topic = 6: opioid, district, drug, awareness, treatment, help, crisis, addiction, recovery, fight, health, abuse, lives, drugs, families, rise, disease, act, epidemic, firsthand, opioids, suicide, communities, nation, prevention, encourage, opioid crisis, americans, raise awareness, opioid epidemic, together, overdose, national, combat, country, prescription, pain, hope, opioid abuse, individuals, raise, resources, mental, substance, stop, fentanyl, alone, seen, currently, heroin'\n",
      " 'Ideal Point = -0.5, Topic = 6: health, opioid, treatment, crisis, help, disease, lives, abuse, drug, addiction, epidemic, rise, families, prevention, act, awareness, mental, communities, fight, substance, national, americans, services, opioids, mental health, recovery, research, suicide, percent, opioid crisis, nation, country, cancer, opioid epidemic, individuals, patients, pain, drugs, district, prevent, life, deaths, death, overdose, resources, children, cause, combat, important, suffering'\n",
      " 'Ideal Point = 0.0, Topic = 6: health, treatment, disease, opioid, mental, crisis, help, lives, mental health, services, prevention, abuse, epidemic, research, percent, substance, care, cancer, rise, children, families, act, medical, addiction, communities, national, drug, deaths, risk, patients, americans, million, public health, death, public, life, including, individuals, country, prevent, colleagues, access, opioids, suffering, awareness, pain, diseases, disorder, increase, suicide'\n",
      " 'Ideal Point = 0.5, Topic = 6: health, mental, disease, treatment, care, mental health, children, services, medical, research, cancer, percent, crisis, public health, opioid, substance, help, prevention, lives, public, risk, million, access, epidemic, deaths, child, abuse, rates, colleagues, rise, patients, hiv, including, likely, diseases, national, act, centers, death, families, social, rate, among, life, healthcare, communities, emergency, increase, illness, serious'\n",
      " 'Ideal Point = 1.0, Topic = 6: health, hiv, care, mental, children, medical, mental health, public health, services, disease, likely, child, cancer, research, percent, maternal, disparities, treatment, social, access, public, aids, rates, risk, substance, million, severe, higher, emergency, deaths, among, colleagues, rate, centers, crisis, including, diseases, prevention, lack, healthcare, serious, health care, lung, states, funding, suffer, help, illness, lives, increase'\n",
      " '========================================================================================================================'\n",
      " 'Ideal Point = -1.0, Topic = 7: court, law, constitution, judge, protect, federal, trial, lawsuits, courts, supreme, lawyers, frivolous, supreme court, laws, constitutional, legal, state, cases, justice, citizen, judicial, judges, rights, federal law, property, litigation, person, violate, decision, circuit, attorney, balance, criminal, violation, individual, defend, lawsuit, statute, citizens, americans, protected, innocent, section, felony, authority, brought, sue, seized, lawyer, jurisdiction'\n",
      " 'Ideal Point = -0.5, Topic = 7: court, law, judge, supreme, justice, courts, supreme court, federal, constitution, legal, laws, cases, rights, criminal, trial, state, constitutional, lawyers, attorney, judicial, lawsuits, judges, decision, person, protect, civil, litigation, judiciary, circuit, individual, lawsuit, violation, citizens, attorneys, prison, statute, citizen, section, federal law, lawyer, claims, ruled, frivolous, due process, property, balance, filed, general, crime, states'\n",
      " 'Ideal Point = 0.0, Topic = 7: court, justice, law, supreme, supreme court, courts, criminal, federal, judge, rights, legal, cases, attorney, laws, civil, state, judiciary, decision, constitutional, judicial, system, constitution, prison, judges, person, general, trial, lawyers, crime, criminal justice, attorney general, attorneys, lawsuits, justice system, litigation, states, circuit, citizens, individual, due process, lawsuit, claims, ruled, violation, due, individuals, filed, ruling, unconstitutional, lawyer'\n",
      " 'Ideal Point = 0.5, Topic = 7: court, justice, supreme, supreme court, criminal, courts, law, rights, federal, system, legal, attorney, civil, cases, criminal justice, judge, judiciary, laws, prison, general, justice system, crime, incarceration, attorney general, reform, decision, state, mandatory, justice department, criminal justice system, offenses, judicial, constitutional, person, individuals, attorneys, incarcerated, act, judges, mass, convicted, states, federal court, process, department, seek, civil rights, due, justice reform, lawyers'\n",
      " 'Ideal Point = 1.0, Topic = 7: justice, court, incarceration, criminal, supreme, supreme court, system, criminal justice, mass, courts, mandatory, reform, justice department, offenses, rights, justice system, criminal justice system, incarcerated, civil, judiciary, federal, attorney, general, attorney general, crime, legal, law, prison, cases, civil rights, process, act, indicated, laws, individuals, criminal justice reform, judge, department, seek, justice reform, sentences, decision, conference, based, colleagues, convicted, persons, state, first, attempt'\n",
      " '========================================================================================================================'\n",
      " 'Ideal Point = -1.0, Topic = 8: employees, employee, labor, balance, employers, workers, federal employees, union, hardworking, flexibility, private, workforce, employer, sector, private sector, colleagues, employment, job, businesses, hire, pay, workplace, hiring, hires, worker, joint, government, choice, cash, choose, hardworking men, voluntary, federal, freedom, hired, american, paid, offer, american workers, overtime, protections, empower, unions, pension, hours, pensions, franchise, scheme, act, americans'\n",
      " 'Ideal Point = -0.5, Topic = 8: employees, workers, labor, employee, employers, union, employer, workforce, pay, job, balance, employment, sector, workplace, hardworking, private, worker, colleagues, private sector, flexibility, act, paid, federal employees, unions, wage, federal, american, protections, businesses, american workers, retirement, hiring, hire, fair, overtime, pension, benefits, joint, americans, wages, fairness, hours, choose, pensions, freedom, rise, men, pro, choice, legislation'\n",
      " 'Ideal Point = 0.0, Topic = 8: workers, employees, labor, employers, pay, union, employee, wage, act, employer, workplace, workforce, worker, job, wages, employment, paid, fair, unions, retirement, minimum, fairness, sector, families, benefits, women, american, protections, colleagues, federal, minimum wage, percent, rights, american workers, private, hardworking, pro, bargaining, rise, americans, collective, jobs, private sector, leave, men, raise, fairness act, protect, better, balance'\n",
      " 'Ideal Point = 0.5, Topic = 8: workers, wage, labor, act, pay, wages, employers, minimum, fair, union, employees, minimum wage, workplace, worker, families, raise, fairness, rights, women, retirement, paid, unions, percent, employer, workforce, job, benefits, economy, gap, paycheck, conditions, collective, jobs, better, employment, bargaining, earn, average, class, income, fairness act, living, employee, equal, american, economic, protections, equal pay, education, organize'\n",
      " 'Ideal Point = 1.0, Topic = 8: wage, workers, wages, raise, act, minimum wage, minimum, gap, pay, families, rights, fair, income, economic, economy, women, paycheck, labor, fairness, conditions, inequality, class, percent, average, workers rights, living, worker, workplace, retirement, equal pay, poverty, better, equal, contract, paycheck fairness, earn, basic, earned, jobs, benefits, collective, unions, raising, paid, employers, union, bargain, cents, education, bargaining'\n",
      " '========================================================================================================================'\n",
      " 'Ideal Point = -1.0, Topic = 9: financial, services, regulations, community, regulatory, capital, credit, subcommittee, financial services, access, institutions, bank, unions, dodd, financial institutions, dream, act, american dream, credit unions, vice, main, regulatory relief, cfpb, regulation, compliance, costs, growth, businesses, financial choice, main street, financial choice act, consumer, fewer, regulatory burden, sec, risk, burden, end, markets, securities, regulators, union, help, institution, banking, financing, size, loan, formation, size fits'\n",
      " 'Ideal Point = -0.5, Topic = 9: financial, services, credit, financial services, institutions, capital, bank, community, act, consumer, regulatory, dodd, financial institutions, regulations, access, consumers, loan, sec, loans, unions, subcommittee, cfpb, markets, companies, regulators, investors, banking, businesses, securities, credit unions, risk, relief, protection, street, regulation, help, main, mortgage, lending, exchange, home, customers, financing, finance, choice, main street, institution, important, legislation, dream'\n",
      " 'Ideal Point = 0.0, Topic = 9: financial, financial services, consumer, credit, services, consumers, institutions, bank, loans, protection, act, loan, companies, capital, street, investors, financial institutions, dodd, sec, lending, banking, community, markets, bureau, wall street, regulators, money, securities, relief, wall, mortgage, americans, regulatory, colleagues, company, crisis, businesses, risk, protect, borrowers, consumer financial, help, financial protection, cfpb, market, lenders, choice, consumer financial protection, investor, exchange'\n",
      " 'Ideal Point = 0.5, Topic = 9: financial, consumer, consumers, protection, financial services, debt, loans, credit, wall, wall street, companies, loan, protect, street, protections, colleagues, services, institutions, predatory, bureau, investors, bank, million, money, practices, borrowers, americans, fraud, crisis, bad, corporate, act, lending, balance, company, interest, billion, financial protection, consumer financial, millions, protection bureau, financial protection bureau, consumer financial protection, system, sec, reserve, financial institutions, banking, profit, student'\n",
      " 'Ideal Point = 1.0, Topic = 9: debt, financial, protections, predatory, consumer, consumers, practices, million, protect, wall, protection, fraud, wall street, profit, colleagues, corporate, student, loans, bad, millions, corporations, bureau, borrowers, fraudulent, companies, balance, nearly, street, prevent, interest, crisis, wrong, billion, student loan, profits, loan, money, americans, actors, wealth, oppose, financial services, reserve, advantage, company, investors, defrauded, dollars, rates, protection bureau'\n",
      " '========================================================================================================================'\n",
      " 'Ideal Point = -1.0, Topic = 10: economy, businesses, rise, american, economic, america, industry, important, jobs, world, growth, hardworking, companies, job creators, grow, usmca, district, trade, products, country, nation, proud, trump, creators, innovation, market, opportunities, manufacturing, markets, environment, prosperity, state, job, manufacturers, company, entrepreneurs, canada, economic growth, growing, home, million, free, industries, americans, create, competitive, nearly, open, investment, colleagues'\n",
      " 'Ideal Point = -0.5, Topic = 10: economy, businesses, jobs, economic, american, growth, america, industry, trade, companies, world, country, grow, market, rise, create, job, manufacturing, nation, important, products, district, million, opportunities, innovation, investment, economic growth, percent, entrepreneurs, growing, markets, state, company, billion, nearly, home, capital, workers, development, global, good, owned, usmca, competitive, manufacturers, help, industries, canada, trump, communities'\n",
      " 'Ideal Point = 0.0, Topic = 10: jobs, economy, businesses, economic, american, growth, america, trade, create, companies, country, job, industry, market, percent, manufacturing, million, world, grow, investment, workers, good, creating, opportunities, nation, billion, economic growth, products, sector, capital, growing, nearly, owned, entrepreneurs, district, goods, help, communities, development, private, innovation, company, creation, paying, state, global, home, important, china, markets'\n",
      " 'Ideal Point = 0.5, Topic = 10: jobs, economic, businesses, economy, create, growth, american, trade, creating, america, good, percent, workers, job, country, companies, million, sector, market, investment, manufacturing, create jobs, private, billion, creation, goods, promises, paying, infrastructure, industry, high, unemployment, created, level, world, grow, opportunities, labor, capital, owned, help, economic growth, paying jobs, since, communities, china, good paying, nation, nearly, private sector'\n",
      " 'Ideal Point = 1.0, Topic = 10: jobs, promises, unemployment, lowest, economic, create, businesses, creating, rate, economy, good, high, create jobs, trade, growth, workers, agenda, level, percent, sector, labor, unemployment rate, infrastructure, american, wages, bridges, private, creating jobs, stock market, job, nafta, creation, america, created, paying, country, create good, million, investment, goods, roads, gap, market, bank, companies, billion, private sector, low, manufacturing, training'\n",
      " '========================================================================================================================'\n",
      " 'Ideal Point = -1.0, Topic = 11: law abiding, abiding, second, rights, carry, bear, state, citizens, constitutional, arms, law, constitutional rights, concealed, license, lines, defend, concealed carry, state lines, keep, driver license, permit, reciprocity, background, driver, gun, simply, firearms, firearm, shooting, rise, protect, check, colleagues, springs, states, system, others, travel, carrying, holders, owners, already, cross, americans, purchase, background check, hunting, laws, weapon, permits'\n",
      " 'Ideal Point = -0.5, Topic = 11: abiding, second, law abiding, gun, carry, background, state, shooting, rights, citizens, bear, check, concealed, firearms, law, violence, keep, firearm, guns, arms, protect, concealed carry, rise, americans, colleagues, background check, act, checks, laws, constitutional, license, lines, weapon, permit, reciprocity, country, others, state lines, simply, system, american, purchase, lives, since, stop, prevent, background checks, another, springs, district'\n",
      " 'Ideal Point = 0.0, Topic = 11: gun, violence, background, shooting, gun violence, guns, lives, check, checks, killed, act, americans, country, firearms, background checks, mass, carry, safety, background check, second, weapons, legislation, colleagues, firearm, children, laws, school, commonsense, lost, protect, american, shootings, state, rise, tragedy, since, concealed, stop, keep, victims, prevent, families, another, weapon, shot, save, days, law, safe, hands'\n",
      " 'Ideal Point = 0.5, Topic = 11: violence, gun, gun violence, lives, background, killed, school, guns, children, mass, checks, safety, shooting, background checks, country, weapons, legislation, lost, act, check, assault, americans, shootings, commonsense, communities, gun safety, tragedy, epidemic, background check, violence prevention, hands, families, hook, silence, victims, universal, shot, save, sandy, yet, american, nothing, mass shooting, high, safe, ban, mass shootings, since, firearms, students'\n",
      " 'Ideal Point = 1.0, Topic = 11: gun violence, violence, gun, school, lives, children, killed, mass, safety, violence prevention, epidemic, background, gun safety, checks, background checks, students, weapons, guns, assault, country, communities, lost, legislation, hands, silence, shootings, commonsense gun, mass shootings, prevention, hook, tragedy, shooting, teachers, universal, commonsense, sandy, act, families, innocent, sandy hook, nra, prayers, high school, yet, nothing, mass shooting, high, save lives, ban, victims'\n",
      " '========================================================================================================================'\n",
      " 'Ideal Point = -1.0, Topic = 12: illegal, secure, aliens, country, border, illegal aliens, illegal immigrants, citizens, illegally, laws, securing, drug, cartels, borders, immigration, illegal immigration, percent, security, sanctuary, southern, criminal, nation, immigrants, cities, amnesty, drugs, law, americans, southern border, border security, drug cartels, american, crisis, barrier, sanctuary cities, fence, american citizens, fentanyl, america, patrol, open, border patrol, heroin, national, pounds, criminals, enforce, killed, immigration laws, alien'\n",
      " 'Ideal Point = -0.5, Topic = 12: border, illegal, secure, security, immigration, country, southern, borders, crisis, drug, illegally, southern border, border security, aliens, laws, drugs, immigrants, wall, patrol, american, law, border patrol, cartels, citizens, securing, america, criminal, illegal immigrants, agents, illegal aliens, sanctuary, percent, nation, illegal immigration, ice, coming, customs, trump, cities, stop, americans, entry, criminals, dangerous, legal, system, amnesty, barrier, enforcement, drug cartels'\n",
      " 'Ideal Point = 0.0, Topic = 12: border, security, wall, children, immigration, southern, crisis, illegal, southern border, border security, borders, country, trump, patrol, customs, border patrol, families, agents, homeland, ice, humanitarian, entry, administration, homeland security, america, secure, asylum, drugs, coming, drug, american, border wall, immigrants, stop, law, detention, policy, illegally, legal, border protection, dangerous, cbp, protection, laws, human, parents, facilities, build, custody, emergency'\n",
      " 'Ideal Point = 0.5, Topic = 12: border, children, wall, administration, detention, border wall, families, policy, parents, child, asylum, security, homeland, separated, homeland security, conditions, trump, facilities, humanitarian, immigration, trump administration, separation, customs, fleeing, custody, crisis, seeking, emergency, southern, family, cruel, entry, zero, mothers, separating, ice, patrol, southern border, department, cbp, inhumane, border security, agents, migrants, border patrol, held, babies, protection, ineffective, away'\n",
      " 'Ideal Point = 1.0, Topic = 12: children, child, parents, administration, detention, policy, separated, border, border wall, cruel, babies, conditions, separation, trump administration, fleeing, wall, families, mothers, family separation, asylum, separating, inhumane, zero, facilities, ineffective, seekers, seeking, homeland, custody, cages, homeland security, arms, reunite, emergency, tolerance, held, zero tolerance, away, family, values, department, violence, refuge, humanitarian, humane, reunited, refugees, kids, trump, cruelty'\n",
      " '========================================================================================================================'\n",
      " 'Ideal Point = -1.0, Topic = 13: life, protection, protect, protection act, unborn, alive, born, born alive, act, pro, sanctity, abortion, innocent, survivors protection, survivors, survivors protection act, pro life, human, born alive abortion, alive abortion, alive abortion survivors, abortion survivors, human life, abortion survivors protection, babies, precious, lives, children, womb, child, baby, pain, voice, abortions, discharged, vulnerable, judiciary, fight, proud, feel, capable, unborn child, americans, innocent lives, since, late, weeks, wade, child protection act, protecting'\n",
      " 'Ideal Point = -0.5, Topic = 13: life, abortion, born, protection, alive, unborn, protect, pro, protection act, act, babies, baby, child, born alive, pro life, children, human, abortions, lives, survivors, pain, human life, innocent, survivors protection, survivors protection act, born alive abortion, abortion survivors, alive abortion, alive abortion survivors, abortion survivors protection, sanctity, weeks, womb, precious, wade, judiciary, planned, vulnerable, mother, voice, capable, unborn child, million, discharged, mothers, legislation, feel, americans, pregnancy, fight'\n",
      " 'Ideal Point = 0.0, Topic = 13: women, abortion, life, baby, planned, child, born, pregnancy, birth, babies, parenthood, pro, abortions, care, planned parenthood, alive, children, protection, unborn, pregnant, colleagues, mother, mothers, woman, act, protect, weeks, lives, pro life, rise, wade, protection act, reproductive, human, health, rights, family, medical, legislation, decision, pain, born alive, law, doctors, women health, choice, week, family planning, decisions, protected'\n",
      " 'Ideal Point = 0.5, Topic = 13: women, reproductive, woman, health, pregnant, family, access, decisions, planned, pregnancy, care, planning, birth, women health, parenthood, planned parenthood, healthcare, reproductive health, colleagues, abortion, family planning, title, choice, doctors, oppose, opposition, services, baby, pregnant women, mothers, dangerous, control, child, personal, rights, mother, bodies, choices, rise, choose, attack, pregnancies, politicians, life, doctor, health care, medical, women rights, clear, decision'\n",
      " 'Ideal Point = 1.0, Topic = 13: women, access, reproductive, health, decisions, woman, family, healthcare, pregnant, reproductive health, planning, women health, services, dangerous, opposition, control, family planning, personal, planned, pregnancy, care, title, attack, bodies, pregnant women, health care, oppose, parenthood, birth, planned parenthood, choices, politicians, choice, colleagues, doctors, women rights, choose, pregnancies, men, attacks, healthcare decisions, bans, weekend, constitutional, unnecessary, maternal, unintended, comprehensive, american women, constitutionally'\n",
      " '========================================================================================================================'\n",
      " 'Ideal Point = -1.0, Topic = 14: responders, first responders, requested, flown, flag, close, family, americans, praying, life, military, passed, wife, university, friends, passed away, away, capitol, rise, lift, served, graduated, honoring, community, college, nation capitol, offer, church, prayers, station, friend, age, difficult, heartfelt, county, man, married, selfless, born, school, father, remembered, legacy, keep, known, defined, always, serving, degree, children'\n",
      " 'Ideal Point = -0.5, Topic = 14: family, life, wife, rise, passed, friends, away, served, community, friend, passed away, man, father, children, always, legacy, loved, remember, age, others, son, serving, first, husband, known, born, country, home, public, heart, prayers, dedicated, county, school, better, old, serve, servant, state, lived, went, lives, missed, remembered, church, difficult, left, met, entire, university'\n",
      " 'Ideal Point = 0.0, Topic = 14: family, life, rise, friend, wife, children, community, man, served, always, father, loved, away, friends, first, passed, son, remember, legacy, lives, mother, country, district, never, home, others, public, serve, old, husband, heart, lost, serving, daughter, state, passed away, better, known, knew, left, dedicated, congressman, story, entire, age, together, met, much, came, born'\n",
      " 'Ideal Point = 0.5, Topic = 14: never, god, forget, bless, never forget, grateful, god bless, family, life, families, war, congressman, global, terrorism, district, conclusion, friend, american, troops, mother, children, rise, first, lost, always, lives, man, week, loved, father, america, together, leadership, son, community, colleague, wife, daughter, served, story, fight, appreciate, came, nation, remember, country, peace, serve, world, home'\n",
      " 'Ideal Point = 1.0, Topic = 14: conclusion, terrorism, troops, global, war, god bless, bless, never forget, forget, god, grateful, american families, appreciate, never, families, congratulations, american, america, week, congressman, congresswoman, leadership, yesterday, citizens, freedom, appreciated, district, colleague, fight, mother, extraordinary, power, life, family, lost, peace, together, champion, sympathy, commitment, constituents, lives, caucus, spoke, first, marks, courage, inspiring, nation, friend'\n",
      " '========================================================================================================================'\n",
      " 'Ideal Point = -1.0, Topic = 15: communist, socialist, party, chinese communist party, chinese communist, china, communist party, chinese, never, freedom, destruction, government, rights, violence, world, religious, evil, human, country, actions, hatred, force, seen, destroying, citizens, christians, regime, blind, concentration, anti, jewish, riots, mob, human rights, venezuela, witnessed, cuba, state, millions, property, recent, condemn, happen, hate, control, countries, free, individuals, end, burning'\n",
      " 'Ideal Point = -0.5, Topic = 15: rights, china, human, government, chinese, communist, freedom, human rights, party, world, anti, violence, religious, never, communist party, chinese communist, chinese communist party, country, jewish, citizens, socialist, state, regime, free, democracy, seen, since, actions, genocide, holocaust, condemn, hate, christians, venezuela, million, anti semitism, semitism, hatred, evil, peaceful, colleagues, individuals, camps, accountable, blind, recent, acts, forced, foreign, atrocities'\n",
      " 'Ideal Point = 0.0, Topic = 15: rights, human, human rights, government, freedom, world, anti, religious, china, violence, chinese, state, free, jewish, democracy, country, genocide, political, international, since, citizens, including, abuses, million, peaceful, accountable, forced, colleagues, rise, held, holocaust, regime, crimes, clear, anti semitism, semitism, brutal, communist, killed, atrocities, never, party, condemn, hate, hold, camps, protests, democratic, message, seen'\n",
      " 'Ideal Point = 0.5, Topic = 15: human, human rights, rights, government, anti, world, freedom, crimes, political, rise, international, religious, abuses, state, including, violence, held, democracy, genocide, free, brutal, accountable, clear, forced, united, colleagues, since, ethnic, peaceful, million, jewish, message, violations, country, killed, calls, democratic, journalists, atrocities, attacks, horrific, semitism, anti semitism, rights abuses, community, china, hold, holocaust, human rights abuses, citizens'\n",
      " 'Ideal Point = 1.0, Topic = 15: human rights, human, rights, government, crimes, rise, anti, political, international, world, united, abuses, held, including, ethnic, freedom, brutal, journalists, message, accountability, clear, violations, press, state, calls, genocide, authorities, democracy, accountable, states, colleagues, forced, victims, religious, attacks, free, detained, democratic, united states, peaceful, community, rights abuses, subjected, million, leadership, human rights abuses, since, violence, killed, horrific'\n",
      " '========================================================================================================================'\n",
      " 'Ideal Point = -1.0, Topic = 16: things, got, actually, lot, folks, something, thing, good, way, appreciate, let, really, never, put, came, especially, coming, different, tell, part, much, somebody, end, heard, trying, tonight, talking, better, find, looking, job, home, big, went, maybe, told, talked, indeed, found, next, goes, give, story, first, point, anything, ever, else, another, friend'\n",
      " 'Ideal Point = -0.5, Topic = 16: things, got, something, lot, way, actually, really, let, thing, good, put, tell, much, talking, came, trying, never, folks, coming, part, different, heard, find, point, money, give, went, saying, maybe, another, first, country, says, told, talked, appreciate, better, big, still, looking, end, job, else, anything, try, happen, next, comes, hear, goes'\n",
      " 'Ideal Point = 0.0, Topic = 16: things, really, way, something, let, lot, got, thing, good, actually, put, much, tell, talking, country, trying, saying, point, money, came, says, another, give, heard, side, first, part, still, find, whether, coming, try, happen, went, place, maybe, never, happened, different, problem, might, told, else, important, away, talked, america, anything, comes, hear'\n",
      " 'Ideal Point = 0.5, Topic = 16: really, way, let, something, country, things, lot, much, talking, thing, got, put, good, tell, saying, whether, money, point, side, trying, says, another, important, actually, give, place, still, happen, course, try, happened, first, matter, away, came, might, deal, heard, taking, terms, problem, everything, america, find, part, went, maybe, issues, friends, wanted'\n",
      " 'Ideal Point = 1.0, Topic = 16: really, country, way, let, something, whether, terms, side, much, things, saying, important, matter, talking, course, money, lot, point, put, tell, says, deal, thing, good, trying, issues, another, place, still, friends, happened, american, happen, try, taking, got, away, give, wants, happening, first, everything, might, means, relates, attention, america, problem, republicans, mean'\n",
      " '========================================================================================================================'\n",
      " 'Ideal Point = -1.0, Topic = 17: innovation, drug, cures, lifesaving, pharmacy, medical, patients, device, cures act, fewer, medical device, market, lower, commerce, pricing, transparency, prescription, drugs, access, bipartisan, treatments, fda, life, lower costs, prices, cure, costs, alzheimer, drug pricing, energy, devices, medical devices, prescription drug, counter, medicines, als, drug prices, high, development, patient, cost, cancer, americans, diseases, fees, try, medicine, benefit, prescription drugs, manufacturers'\n",
      " 'Ideal Point = -0.5, Topic = 17: drug, drugs, prescription, lower, patients, cures, lifesaving, innovation, prices, costs, fda, market, prescription drug, medical, pharmacy, access, commerce, pricing, drug prices, cost, prescription drugs, device, treatments, life, companies, americans, drug costs, energy, cures act, patient, transparency, high, medicines, fewer, act, lower drug, medical device, manufacturers, medications, pharmaceutical, drug pricing, counter, bipartisan, cure, devices, seniors, food, medicine, try, products'\n",
      " 'Ideal Point = 0.0, Topic = 17: drug, drugs, prescription, prices, lower, costs, prescription drug, cost, prescription drugs, fda, patients, drug prices, drug costs, companies, lifesaving, market, americans, cures, act, medicare, pharmaceutical, lower drug, access, legislation, drug administration, food, medications, patient, commerce, manufacturers, pricing, high, seniors, medical, treatments, innovation, lowering, medication, energy, generic, american, colleagues, pharmacy, life, prescription drug costs, medicines, products, negotiate, lower drug costs, part'\n",
      " 'Ideal Point = 0.5, Topic = 17: drug, drugs, prescription, prices, costs, prescription drugs, cost, prescription drug, lower, drug costs, negotiate, companies, drug prices, medicare, legislation, fda, act, americans, pharmaceutical, drug administration, big, lower drug, american, prescription drug costs, colleagues, patients, afford, food, insulin, lower drug costs, drug companies, vision, medications, lowering, pharmaceutical companies, market, medication, prescription drug prices, manufacturers, seniors, healthcare, savings, patient, prescriptions, generic, pay, part, high, access, countries'\n",
      " 'Ideal Point = 1.0, Topic = 17: drug, drugs, negotiate, prescription, prices, prescription drugs, costs, vision, drug costs, cost, legislation, prescription drug, big, medicare, afford, lower, companies, american, dental, colleagues, prescription drug costs, insulin, drug prices, act, healthcare costs, savings, lower drug costs, drug companies, drug administration, pharmaceutical companies, pharmaceutical, americans, taxpayers, fda, lower drug, food, prescriptions, constituents, skyrocketing, healthcare, historic, prescription drug prices, pay, lowering, countries, pass, profits, medication, part, promise'\n",
      " '========================================================================================================================'\n",
      " 'Ideal Point = -1.0, Topic = 18: agriculture, farmers, farm, ranchers, industry, producers, food, farming, farmer, agricultural, dairy, bureau, ag, farm bureau, feed, crops, cattle, farms, milk, district, usda, crop, commodity, supply, farmers ranchers, sugar, livestock, american farmers, corn, products, animal, production, producing, food supply, produce, association, state, prices, growers, america, cotton, largest, chamber, american, national, country, plant, animals, ranch, national association'\n",
      " 'Ideal Point = -0.5, Topic = 18: agriculture, farmers, farm, agricultural, ranchers, food, industry, producers, farmer, association, farming, dairy, bureau, farms, ag, national, crops, farm bureau, feed, america, american, milk, state, crop, usda, national association, district, cattle, commodity, products, supply, animal, farmers ranchers, production, corn, livestock, sugar, growers, american farmers, council, produce, policy, chamber, alliance, federation, coalition, producing, food supply, cotton, organizations'\n",
      " 'Ideal Point = 0.0, Topic = 18: association, national, agriculture, farmers, farm, american, america, agricultural, coalition, organizations, council, alliance, national association, state, food, federation, center, ranchers, groups, institute, policy, industry, letter, producers, farmer, international, farms, society, network, foundation, inc, dairy, union, group, county, advocacy, farming, crops, bureau, leadership, ag, growers, behalf, project, league, organization, including, chamber, crop, feed'\n",
      " 'Ideal Point = 0.5, Topic = 18: association, national, center, organizations, coalition, american, network, alliance, council, advocacy, america, groups, justice, project, international, letter, foundation, federation, institute, organization, afl cio, cio, national association, league, afl, society, law center, social, united, inc, fund, dear, advocates, union, state, law, defense, policy, citizen, behalf, leadership, national council, public, asian, legislation, legal, catholic, disability, naacp, usa'\n",
      " 'Ideal Point = 1.0, Topic = 18: center, organizations, network, justice, association, national, advocacy, coalition, cio, afl cio, afl, project, law center, organization, league, fund, social, alliance, united, foundation, council, defense, groups, american, international, letter, dear, asian, advocates, naacp, disability, catholic, citizen, society, institute, academy, church, law, jewish, social justice, inc, legal, women law, federation, task force, force, legislation, human, usa, america'\n",
      " '========================================================================================================================'\n",
      " 'Ideal Point = -1.0, Topic = 19: china, iran, terrorist, world, middle, terrorism, east, israel, united, terror, middle east, united states, states, nations, deal, obama, foreign, countries, america, iranian, treasury, terrorists, allies, sponsor, weapons, enemies, russia, obama administration, nuclear, americans, protect, country, korea, islamic, security, regime, state, bad, american, rise, ally, international, known, nation, sanctions, syria, administration, throughout, region, since'\n",
      " 'Ideal Point = -0.5, Topic = 19: world, iran, united, united states, states, foreign, israel, middle, east, countries, terrorist, allies, china, nations, middle east, terrorism, security, russia, america, american, weapons, iranian, war, nuclear, administration, international, state, military, korea, peace, regime, terror, obama, syria, sanctions, deal, terrorists, region, threat, trump, policy, ally, iraq, americans, country, rise, attack, interests, attacks, global'\n",
      " 'Ideal Point = 0.0, Topic = 19: united, world, foreign, united states, states, iran, war, security, allies, countries, administration, american, israel, peace, military, international, russia, east, nations, middle, state, policy, syria, middle east, america, weapons, sanctions, terrorist, nuclear, region, korea, regime, global, threat, iranian, trump, clear, interests, iraq, conflict, terrorism, china, national security, forces, leadership, ally, attack, isis, attacks, europe'\n",
      " 'Ideal Point = 0.5, Topic = 19: war, united, foreign, states, united states, world, security, iran, administration, allies, peace, countries, military, american, international, policy, conflict, russia, clear, global, state, humanitarian, syria, israel, leadership, sanctions, region, foreign policy, nations, saudi, trump, threat, interests, regime, korea, east, weapons, yemen, forces, nuclear, assistance, iraq, america, national security, middle, partners, democratic, colleagues, let, middle east'\n",
      " 'Ideal Point = 1.0, Topic = 19: war, foreign, united, states, united states, security, ambassador, administration, humanitarian, peace, world, military, allies, american, conflict, saudi, crisis, countries, measure, international, foreign policy, iran, policy, promoting, clear, authorization, leadership, diplomacy, democratic, global, assistance, yemen, declare war, commitment, role, solution, partners, diplomatic, bipartisan, syria, russia, state, let, civilians, prime, region, sanctions, blank, colleagues, aumf'\n",
      " '========================================================================================================================'\n",
      " 'Ideal Point = -1.0, Topic = 20: obamacare, choice, choices, mandates, government, options, reform, insurance, fits, healthcare, centered, competition, system, decisions, health, accounts, bureaucrats, patients, size fits, patient centered, plans, counties, relief, choose, reforms, doctors, better, plan, solutions, mandate, patient, costs, healthcare system, size, keep, percent, savings, control, deductible, care, best, freedom, purchase, step, first, repeal obamacare, doctor, flexibility, way, failed'\n",
      " 'Ideal Point = -0.5, Topic = 20: obamacare, insurance, health, healthcare, care, affordable, coverage, plans, costs, choice, plan, system, act, health care, americans, american, care act, premiums, health insurance, cost, percent, choices, options, repeal, access, patients, healthcare system, affordable care, better, afford, state, market, lower, government, affordable care act, families, individual, patient, keep, medicaid, choose, mandates, reform, mandate, law, high, first, competition, conditions, doctor'\n",
      " 'Ideal Point = 0.0, Topic = 20: care, health, insurance, healthcare, affordable, coverage, care act, act, americans, affordable care, affordable care act, health care, health insurance, costs, american, medicaid, repeal, plan, conditions, preexisting, access, million, plans, cost, premiums, obamacare, preexisting conditions, millions, families, medicare, aca, republicans, system, pay, percent, state, million americans, afford, lose, republican, protections, trump, away, colleagues, benefits, states, market, law, lower, healthcare system'\n",
      " 'Ideal Point = 0.5, Topic = 20: care, affordable, affordable care, affordable care act, care act, health, coverage, insurance, act, americans, healthcare, million, medicaid, millions, preexisting, conditions, health care, lose, health insurance, protections, preexisting conditions, repeal, republicans, republican, million americans, aca, american, trump, away, trumpcare, costs, benefits, access, age, plan, medicare, cost, premiums, families, health coverage, pay, essential, uninsured, colleagues, older, administration, condition, seniors, losing, cancer'\n",
      " 'Ideal Point = 1.0, Topic = 20: affordable care act, affordable care, care, trumpcare, care act, affordable, million, millions, act, coverage, lose, americans, protections, medicaid, health, preexisting, republican, conditions, age tax, republicans, million americans, age, insurance, preexisting conditions, trump, away, healthcare, aca, benefits, essential, older, prescription, health coverage, health care, repeal, republican colleagues, sick, health insurance, older americans, cancer, sabotage, life, uninsured, losing, preventive, prescription drugs, result, billion, condition, american'\n",
      " '========================================================================================================================'\n",
      " 'Ideal Point = -1.0, Topic = 21: defense, nation, funding, air, force, air force, rise, military, men, women, force base, air force base, national, national defense, base, continuing, uniform, resources, wing, provide, training, colleagues, authorization, critical, missile, armed, readiness, aircraft, services, airmen, authorization act, security, armed services, threats, important, rebuild, appropriations, ndaa, defend, fiscal, national defense authorization, significant, proud, defense authorization, defense authorization act, troops, safe, ensure, secretary, navy'\n",
      " 'Ideal Point = -0.5, Topic = 21: defense, military, national, force, women, nation, men, armed, air, national defense, authorization, air force, funding, base, security, uniform, services, armed services, readiness, authorization act, troops, rise, training, forces, department, defense authorization, ndaa, national security, national defense authorization, fiscal, defense authorization act, critical, continuing, provide, colleagues, resources, force base, secretary, air force base, important, navy, appropriations, defend, aircraft, equipment, missile, threats, dod, guard, mission'\n",
      " 'Ideal Point = 0.0, Topic = 21: defense, military, national, armed, authorization, women, men, security, national security, force, national defense, armed services, services, forces, readiness, department, authorization act, troops, defense authorization, nation, ndaa, uniform, national defense authorization, base, servicemembers, defense authorization act, air, fiscal, armed forces, training, secretary, guard, air force, dod, critical, navy, act, pay, important, appropriations, colleagues, personnel, subcommittee, conference, raise, leadership, equipment, serve, provide, mission'\n",
      " 'Ideal Point = 0.5, Topic = 21: military, defense, national, armed, national security, authorization, security, servicemembers, forces, armed services, women, services, armed forces, department, men, pentagon, national defense, construction, veterans, troops, readiness, military construction, authorization act, defense authorization, force, ndaa, national defense authorization, defense authorization act, guard, fiscal, personnel, dod, military families, conference, act, serve, active, duty, uniform, subcommittee, base, secretary, military personnel, civilian, pay, training, navy, nation, bases, leadership'\n",
      " 'Ideal Point = 1.0, Topic = 21: veterans, military, defense, construction, military construction, armed, national, pentagon, national security, servicemembers, armed forces, authorization, security, military families, forces, armed services, department, overseas, services, women, troops, military personnel, active, transgender, men, readiness, authorization act, active duty, personnel, defense authorization, national defense, duty, conference, serve, civilian, bipartisan, act, guard, ndaa, subcommittee, national defense authorization, defense authorization act, serving, dod, widow, defense department, included, fiscal, wars, states military'\n",
      " '========================================================================================================================'\n",
      " 'Ideal Point = -1.0, Topic = 22: rural, rural america, communities, america, rural communities, areas, rural areas, provide, program, broadband, healthy, rise, help, important, families, local, access, americans, subcommittee, ensure, country, provides, improve, programs, resources, serve, district, individuals, encourage, helping, throughout, assistance, providing, self, food, services, hosted, unique, housing, community, rural broadband, income, represent, nutrition, especially, within, essential, nation, hope, urban'\n",
      " 'Ideal Point = -0.5, Topic = 22: rural, communities, program, areas, families, rural america, rural communities, america, access, help, food, provide, housing, rural areas, programs, income, assistance, americans, country, low, rise, district, healthy, individuals, important, nutrition, urban, services, community, local, provides, broadband, poverty, percent, live, low income, ensure, helping, serve, providing, home, resources, million, living, agriculture, benefits, especially, self, snap, children'\n",
      " 'Ideal Point = 0.0, Topic = 22: rural, food, housing, families, income, communities, program, low, assistance, programs, access, low income, poverty, help, areas, children, urban, nutrition, snap, americans, country, benefits, percent, living, rural communities, million, district, provide, individuals, services, community, live, agriculture, vulnerable, home, america, rural areas, family, farm, rural america, rise, safety, affordable, net, colleagues, hunger, underserved, important, safety net, state'\n",
      " 'Ideal Point = 0.5, Topic = 22: food, housing, income, low, low income, families, poverty, children, assistance, snap, program, rural, vulnerable, programs, poor, access, hunger, urban, nutrition, communities, benefits, hungry, living, million, help, affordable, farm, percent, struggling, agriculture, development, seniors, live, millions, homeless, home, affordable housing, americans, school, country, homelessness, colleagues, meals, community, family, services, farmers, safety, district, individuals'\n",
      " 'Ideal Point = 1.0, Topic = 22: food, housing, income, low income, low, children, poor, poverty, school, hunger, vulnerable, snap, hungry, assistance, families, administration, struggling, farmers, put food, millions, veterans, seniors, affordable, benefits, affordable housing, development, person, farm, urban, program, richest, urban development, programs, living, nutrition, homeless, kids, homelessness, million, rely, meals, snap benefits, afford, colleagues, cuts, access, end, neighborhoods, transportation, proposed'\n",
      " '========================================================================================================================'\n",
      " 'Ideal Point = -1.0, Topic = 23: water, project, river, projects, fish, habitat, species, wildlife, corps, local, storage, reclamation, state, fishing, endangered, resources, coastal, district, engineers, coast, army, army corps, endangered species, valley, dam, endangered species act, population, species act, northern, western, environmental, dams, management, states, conservation, water act, clean water act, manage, communities, recreational, act, infrastructure, control, entire, upper, recovered, lakes, listed, science, water resources'\n",
      " 'Ideal Point = -0.5, Topic = 23: water, fish, river, species, projects, environmental, state, project, wildlife, communities, corps, coastal, resources, local, endangered, clean, coast, district, fishing, act, habitat, epa, engineers, lakes, conservation, endangered species, army, infrastructure, army corps, protect, science, management, ocean, protection, environment, region, reclamation, storage, clean water, fisheries, federal, recreational, restoration, sea, states, water act, dam, endangered species act, critical, species act'\n",
      " 'Ideal Point = 0.0, Topic = 23: water, environmental, clean, communities, epa, state, environment, species, protect, act, health, coastal, air, fish, resources, protection, river, coast, drinking, clean water, ocean, lakes, district, colleagues, endangered, drinking water, wildlife, local, corps, science, fishing, projects, conservation, environmental protection, public, infrastructure, rise, region, natural, restoration, federal, project, endangered species, management, impacts, sea, million, balance, engineers, toxic'\n",
      " 'Ideal Point = 0.5, Topic = 23: water, clean, environmental, air, health, environment, communities, epa, protect, drinking, drinking water, public health, public, clean air, colleagues, toxic, act, protection, state, clean water, pollution, ocean, risk, rise, flint, protecting, environmental protection, agency, coastal, safe, lakes, interior, protections, species, chemicals, resources, industry, contamination, pfas, coast, dangerous, drink, breathe, environmental protection agency, protection agency, district, harmful, oil, science, healthy'\n",
      " 'Ideal Point = 1.0, Topic = 23: air, health, flint, public health, clean, water, environment, clean air, environmental, public, toxic, drinking water, drinking, protect, interior, communities, epa, colleagues, breathe, drink, pollution, polluters, risk, safe, protections, lead, agency, dangerous, protecting, protection, oil, contamination, rise, clean water, human, act, oppose, chemicals, industry, air act, environmental protection, clean air act, ocean, pfas, contaminated, waste, harm, state, harmful, asthma'\n",
      " '========================================================================================================================'\n",
      " 'Ideal Point = -1.0, Topic = 24: pass, move, rules, suspend, amend, purposes, certain, title, secretary, provide, code, act, amend title, states code, united states code, require, security act, direct, establish, federal, improve, authorize, department, pursuant, submit, program, relating, internal, administration, clarify, requirements, authority, revenue, reauthorize, designate, internal revenue, modify, title united states, title united, security, regarding, management, originally, chapter, adding, requesting, section, concurrent, cosponsors, commission'\n",
      " 'Ideal Point = -0.5, Topic = 24: move, pass, rules, suspend, purposes, amend, act, certain, title, code, provide, secretary, require, states code, united states code, amend title, pursuant, establish, security act, direct, authorize, federal, department, relating, improve, program, submit, clarify, reauthorize, internal, section, administration, clause, respect, originally, regarding, authority, internal revenue, requirements, sponsor, requesting, adding, cosponsors, revenue, modify, security, title united, title united states, concurrent, originally introduced'\n",
      " 'Ideal Point = 0.0, Topic = 24: rules, move, pass, purposes, suspend, amend, act, certain, pursuant, title, code, require, provide, secretary, establish, states code, united states code, authorize, amend title, direct, security act, federal, department, relating, section, program, clause, improve, respect, clarify, thereto, reauthorize, sponsor, designee, originally, requesting, cosponsors, adding, joint, regarding, internal, con, submit, administration, originally introduced, concurrent, introduced, technical, public, internal revenue'\n",
      " 'Ideal Point = 0.5, Topic = 24: rules, move, pass, purposes, suspend, amend, act, pursuant, making, appropriations, fiscal, certain, require, ending, title, thereto, code, establish, authorize, section, designee, provide, clause, direct, relating, joint, united states code, states code, department, continuing, secretary, respect, federal, sponsor, security act, amend title, clerk, program, cosponsors, clarify, requesting, reauthorize, originally, con, adding, introduced, technical, expressing, originally introduced, public'\n",
      " 'Ideal Point = 1.0, Topic = 24: fiscal, appropriations, making, ending, rules, move, purposes, pass, continuing, suspend, pursuant, act, thereto, amend, designee, joint, section, clerk, require, clause, certain, establish, expressing, authorize, respect, sponsor, title, relating, code, controlled, department, direct, technical, con, introduced, cosponsors, requesting, originally, provide, federal, adding, united states code, states code, public, program, discharged, reauthorize, clarify, originally introduced, security act'\n",
      " '========================================================================================================================'\n",
      " 'Ideal Point = -1.0, Topic = 25: media, obama, liberal, obama administration, article, clinton, uranium, apparently, evidence, crime, fbi, radical, information, mainstream, fisa, news, anyway, hillary, investigation, found, justice, democrats, knew, hillary clinton, doj, witness, agent, department, lie, bush, destroyed, foundation, yeah, supposedly, intentionally, collusion, general, named, bias, false, mueller, biased, ended, hate, attorney, destroy, man, warrant, judge, appears'\n",
      " 'Ideal Point = -0.5, Topic = 25: media, investigation, obama, fbi, clinton, information, trump, general, evidence, department, justice, obama administration, article, attorney, news, mueller, former, administration, counsel, hillary, found, apparently, russia, hillary clinton, director, campaign, intelligence, liberal, collusion, attorney general, crime, fisa, special, political, democrats, agent, american, russian, inspector, false, involved, democratic, inspector general, election, government, truth, justice department, agents, doj, allegations'\n",
      " 'Ideal Point = 0.0, Topic = 25: trump, investigation, general, russia, fbi, administration, campaign, russian, information, intelligence, american, former, special, attorney, department, counsel, election, director, mueller, clinton, government, media, attorney general, justice, evidence, officials, foreign, political, white, presidential, public, news, obama, special counsel, russians, trump administration, national, investigate, investigations, reported, corruption, democratic, hillary, truth, official, question, questions, inspector, security, secretary'\n",
      " 'Ideal Point = 0.5, Topic = 25: trump, russian, russia, investigation, campaign, american, general, election, white, special, administration, intelligence, putin, democracy, government, foreign, officials, presidential, former, interference, security, counsel, director, national, trump administration, attorney, public, fbi, attorney general, returns, elections, tax returns, national security, independent, department, information, interest, mueller, integrity, special counsel, political, vladimir putin, first, release, vladimir, secretary, question, russians, influence, including'\n",
      " 'Ideal Point = 1.0, Topic = 25: trump, democracy, russian, putin, white, tax returns, interference, russia, american, election, campaign, returns, security, vladimir putin, special, elections, investigation, vladimir, commission, general, intelligence, foreign, national, presidential, independent, administration, interest, trump administration, officials, first, government, national security, conflicts, public, integrity, tax, release, director, influence, adviser, former, flynn, counsel, attorney general, russian interference, undermine, interfered, secretary, question, law'\n",
      " '========================================================================================================================'\n",
      " 'Ideal Point = -1.0, Topic = 26: balance, friend, good, appreciate, reserve, good friend, consume, comments, colleague, colleagues, prepared, tonight, close, speakers, encourage, gentlewoman, general, sponsor, certainly, much, purpose, offering, leave, aware, point, author, adoption, accept, words, evening, seconds, yielded, minute, happy, general leave, congressman, days, former, note, particular, important, privilege, leadership, fellow, insert, really, mentioned, bringing, echo, investigations'\n",
      " 'Ideal Point = -0.5, Topic = 26: friend, balance, good, good friend, consume, gentlewoman, appreciate, reserve, colleague, comments, speakers, close, prepared, minute, general, purpose, colleagues, leave, sponsor, certainly, much, author, seconds, yielded, distinguished, general leave, tonight, days, point, encourage, words, accept, happy, offering, legislative, note, insert, remind, evening, legislative days, former, subcommittee, adoption, aware, important, really, congressman, inquire, leadership, particular'\n",
      " 'Ideal Point = 0.0, Topic = 26: gentlewoman, friend, good friend, good, consume, balance, colleague, minute, distinguished, appreciate, subcommittee, speakers, purpose, comments, reserve, general, close, leave, prepared, author, remind, yielded, seconds, legislative, general leave, days, certainly, sponsor, much, legislative days, insert, colleagues, note, caucus, point, ways, oversight, chairwoman, words, inquire, happy, commerce, judiciary, means, former, really, distinguished colleague, accept, state, champion'\n",
      " 'Ideal Point = 0.5, Topic = 26: gentlewoman, distinguished, subcommittee, minute, friend, agencies, good friend, appropriations, good, colleague, consume, pleased, energy, purpose, chairwoman, labor, balance, remind, education, caucus, speakers, commerce, legislative, judiciary, leave, services, general, foreign, human services, appreciate, close, legislative days, comments, senior, days, yielded, author, general leave, human, ways, seconds, means, insert, prepared, services education, distinguished colleague, valued, oversight, reserve, asked'\n",
      " 'Ideal Point = 1.0, Topic = 26: agencies, appropriations, energy, pleased, subcommittee, distinguished, gentlewoman, labor, education, minute, human services, chairwoman, services education, services, human, caucus, commerce, foreign, senior, judiciary, friend, remind, colleague, good friend, democratic caucus, consume, good, valued, purpose, delighted, legislative, progressive, ways, permission, asked, means, appropriations subcommittee, legislative days, outstanding, speakers, distinguished colleague, leave, discuss, days, oversight, general, democratic, general leave, champion, insert'\n",
      " '========================================================================================================================'\n",
      " 'Ideal Point = -1.0, Topic = 27: war, rise, army, nation, country, world, american, world war, home, safe, protect, men, military, served, veterans, first, sergeant, navy, serve, corps, air, women, guard, hero, freedom, duty, never, forever, families, sacrifice, forces, proud, combat, memorial, medal, life, veteran, national, force, marine, star, serving, air force, national guard, grateful, colonel, legion, stationed, heroes, america'\n",
      " 'Ideal Point = -0.5, Topic = 27: war, army, country, world war, nation, world, american, rise, served, military, men, sacrifice, first, home, women, sergeant, air, serve, corps, navy, duty, guard, force, marine, medal, national, veterans, combat, memorial, forces, families, veteran, star, freedom, serving, soldiers, never, life, hero, air force, vietnam, heroes, lives, proud, gold, national guard, fellow, killed, brave, general'\n",
      " 'Ideal Point = 0.0, Topic = 27: war, army, world war, served, american, country, world, military, nation, men, sacrifice, women, air, soldiers, rise, corps, marine, force, first, vietnam, duty, serve, sergeant, national, medal, navy, brave, guard, combat, memorial, star, serving, gold, home, iraq, lives, forces, air force, veteran, families, heroes, life, afghanistan, died, fellow, killed, freedom, general, fought, post'\n",
      " 'Ideal Point = 0.5, Topic = 27: war, served, world war, army, military, american, sacrifice, country, world, men, nation, soldiers, iraq, vietnam, colleagues, brave, marine, women, force, died, air, gold, corps, duty, afghanistan, lives, national, serve, medal, first, serving, star, sergeant, ultimate, air force, combat, memorial, uniform, post, americans, guard, navy, recognition, servicemembers, fought, veteran, forces, marines, general, heroes'\n",
      " 'Ideal Point = 1.0, Topic = 27: war, colleagues, served, world war, iraq, military, soldiers, army, sacrifice, facility, brave, american, died, vietnam, men, country, world, pleased, afghanistan, designate, uniform, nation, gold, jones, recognition, marine, deserve, servicemembers, passage, force, wars, lives, women, americans, balance, dedicated, whose, ultimate, air, missing, marines, highest, basic, post, duty, tragically, corps, suffered, national, naming'\n",
      " '========================================================================================================================'\n",
      " 'Ideal Point = -1.0, Topic = 28: god, bless, god bless, trust, bible, week, national, nation, jesus, christ, lord, book, freedom, celebrate, history, pray, word, founding, america, prayer, never, rights, world, tonight, freedoms, christian, ever, life, american, special, first, liberty, since, graham, hope, fathers, faith, happiness, reagan, free, important, americans, men, billy, country, holy, grateful, principles, heart, government'\n",
      " 'Ideal Point = -0.5, Topic = 28: god, nation, bless, god bless, america, freedom, history, world, bible, country, american, liberty, week, americans, life, words, trust, never, hope, free, founding, national, faith, first, ever, principles, book, word, jesus, constitution, greatest, values, pray, lord, men, lives, together, celebrate, reagan, live, prayer, rights, government, christ, fathers, christian, always, self, pursuit, happiness'\n",
      " 'Ideal Point = 0.0, Topic = 28: nation, america, country, history, world, god, american, americans, freedom, words, liberty, values, life, free, hope, greatest, faith, principles, moral, live, constitution, never, let, together, society, first, founding, lives, moment, always, power, man, ever, human, among, created, democracy, truth, united, self, place, speech, respect, men, lincoln, religious, came, better, land, fight'\n",
      " 'Ideal Point = 0.5, Topic = 28: country, america, persons, rise, united, nation, justice, words, united states, person, bigotry, values, americans, world, american, history, hate, moral, liberty, states, let, freedom, better, democracy, respect, society, white, dignity, proud, truth, still, free, life, greatest, power, place, others, racism, racist, cause, among, live, moment, created, conscience, hope, human, representatives, courage, different'\n",
      " 'Ideal Point = 1.0, Topic = 28: persons, bigotry, rise, united states, united, person, justice, hate, racism, tolerate, states, presidency, country, racist, america, white, proud, moral, ugly, values, words, better, cause, dignity, still, hateful, let, hatred, respect, muslim, democracy, harm, conscience, americans, dr, muslims, extent, american, refuse, different, nation, world, truth, society, born, stands, others, liberty, comments, protest'\n",
      " '========================================================================================================================'\n",
      " 'Ideal Point = -1.0, Topic = 29: voted, rollcall, unavoidably detained, detained, unavoidably, unable, personal, due, explanation, personal explanation, votes, next week, roll, passage, series, cast, offered, recorded, schedule, act sponsored, final, attend, follows, yes, intended, vice, final passage, missed, regular, friday, white, question, previous, adoption, aye, legislative, week, seems, certificate, stated, sponsored, family, monday, voted yes, circumstances, next, delayed, thursday, tomorrow, cooper'\n",
      " 'Ideal Point = -0.5, Topic = 29: voted, rollcall, detained, unavoidably, unavoidably detained, due, unable, personal, votes, explanation, passage, personal explanation, roll, yes, recorded, offered, next week, final, missed, cast, question, aye, final passage, series, follows, monday, schedule, friday, previous, legislative, tuesday, thursday, attend, vice, regular, voted yes, recommit, intended, certificate, act sponsored, seems, stated, previous question, wednesday, tomorrow, act, week, mistakenly, appears, expected'\n",
      " 'Ideal Point = 0.0, Topic = 29: voted, rollcall, votes, due, detained, yes, unavoidably, unavoidably detained, unable, personal, recorded, passage, explanation, missed, roll, aye, question, offered, monday, tuesday, final, final passage, thursday, wednesday, personal explanation, previous, legislative, recommit, act, friday, next week, voted yes, follows, previous question, cast, announced, vice, tomorrow, regular, schedule, list, ordering, certificate, mistakenly, expected, close, seems, series, stated, appears'\n",
      " 'Ideal Point = 0.5, Topic = 29: voted, votes, rollcall, yes, wednesday, aye, due, tuesday, missed, recorded, monday, question, thursday, act, passage, detained, recommit, final passage, roll, unavoidably, offered, explanation, final, unable, legislative, unavoidably detained, previous, personal, announced, voted yes, friday, suspension, previous question, list, close, tomorrow, ordering, advised, expected, personal explanation, providing, situation, mistakenly, vice, spouse, regular, next week, certificate, appears, follows'\n",
      " 'Ideal Point = 1.0, Topic = 29: voted, votes, wednesday, yes, rollcall, act, tuesday, aye, monday, thursday, missed, suspension, question, recorded, recommit, announced, due, final passage, passage, legislative, close, advised, previous, list, voted yes, offered, final, roll, friday, previous question, ordering, tomorrow, providing, explanation, detained, expected, instructions, situation, spouse, unavoidably, mistakenly, unable, personal, unavoidably detained, appears, vice, regular, chamber, certificate, seems'\n",
      " '========================================================================================================================'\n",
      " 'Ideal Point = -1.0, Topic = 30: states, united, united states, post, located, postal, designate, government, street, facility, government reform, discharged, states postal, united states postal, oversight, reform, states capitol, united states capitol, state, road, representatives, america, country, avenue, jr, main, states government, united states government, introduced, american, states department, east, united states department, foreign, balance, states including, sergeant, courthouse, colleagues, territories, first, general, main street, pleased, respective, important, place, states since, pass, consume'\n",
      " 'Ideal Point = -0.5, Topic = 30: states, united, united states, post, located, postal, designate, government, facility, states postal, united states postal, street, discharged, america, reform, oversight, representatives, government reform, state, states government, united states government, colleagues, country, avenue, road, american, balance, states capitol, united states capitol, states department, united states department, main, foreign, pleased, introduced, states including, east, pass, jr, consume, world, territories, states since, citizens, first, main street, important, drive, general, courthouse'\n",
      " 'Ideal Point = 0.0, Topic = 30: united, states, united states, post, located, postal, america, designate, government, facility, states postal, united states postal, representatives, colleagues, street, states government, united states government, reform, state, oversight, balance, discharged, world, american, country, avenue, pleased, pass, consume, government reform, states department, road, united states department, foreign, main, states including, tell, citizens, east, drive, introduced, states since, territories, states capitol, united states capitol, first, important, general, states citizens, expressing'\n",
      " 'Ideal Point = 0.5, Topic = 30: united, united states, states, america, colleagues, post, world, representatives, postal, designate, located, government, facility, united states government, states government, united states postal, states postal, balance, state, pleased, american, pass, reform, country, oversight, consume, street, avenue, tell, citizens, states department, foreign, united states department, discharged, drive, expressing, road, main, first, countries, states including, states since, states citizens, general, important, recognizing, canada, states let, territories, east'\n",
      " 'Ideal Point = 1.0, Topic = 30: united states, united, states, america, colleagues, world, representatives, united states government, states government, balance, pass, pleased, post, american, state, consume, designate, tell, postal, united states postal, country, government, facility, states postal, located, reform, avenue, oversight, citizens, drive, expressing, street, countries, foreign, first, recognizing, general, states let, important, states citizens, states department, united states department, canada, memorial, represent, importance, states since, main, naming, states including'\n",
      " '========================================================================================================================'\n",
      " 'Ideal Point = -1.0, Topic = 31: legislation, bipartisan, act, colleagues, important, commonsense, piece, encourage, rise, introduced, leadership, help, reforms, colleague, balance, passed, bipartisan legislation, congressman, ensure, proud, needed, important legislation, commonsense legislation, consume, step, cosponsor, appreciate, passage, better, nation, process, includes, provides, improve, improving, improvement, certainty, subcommittee, sides, applaud, critical, commonsense reforms, hard, commend, provide, effort, much, together, friend, important piece'\n",
      " 'Ideal Point = -0.5, Topic = 31: legislation, bipartisan, colleagues, act, important, balance, rise, piece, leadership, commonsense, consume, colleague, help, introduced, proud, ensure, encourage, step, congressman, passed, bipartisan legislation, cosponsor, passage, important legislation, sides, critical, reserve, together, hard, needed, aisle, effort, first, improve, reforms, better, pleased, includes, good, provide, commend, nation, process, subcommittee, much, country, provides, supporting, appreciate, friend'\n",
      " 'Ideal Point = 0.0, Topic = 31: legislation, bipartisan, colleagues, important, act, balance, consume, rise, leadership, proud, step, colleague, ensure, help, introduced, reserve, congressman, piece, passed, together, first, cosponsor, aisle, passage, pleased, critical, bipartisan legislation, hard, sides, effort, important legislation, supporting, commonsense, good, country, encourage, measure, improve, provide, bringing, commend, much, hope, congresswoman, access, needed, better, includes, bring, issues'\n",
      " 'Ideal Point = 0.5, Topic = 31: legislation, bipartisan, balance, colleagues, important, act, consume, leadership, reserve, proud, step, rise, ensure, colleague, measure, help, first, pleased, together, aisle, introduced, hard, critical, hope, supporting, congressman, effort, cosponsor, passage, passed, sides, country, closing, bipartisan legislation, good, congresswoman, representatives, piece, access, important legislation, issues, bringing, provide, thanking, original, cosponsors, bring, strengthen, improve, passing'\n",
      " 'Ideal Point = 1.0, Topic = 31: balance, bipartisan, legislation, colleagues, important, consume, measure, act, reserve, world, step, proud, hope, leadership, first, thanking, pleased, together, ensure, aisle, rise, closing, colleague, supporting, help, hard, critical, representatives, effort, close, country, congresswoman, sides, congressman, introduced, cosponsor, passage, chairs, access, good, passed, acknowledge, strengthen, cosponsors, democratic, issues, original, communities, particularly, congratulate'\n",
      " '========================================================================================================================'\n",
      " 'Ideal Point = -1.0, Topic = 32: education, students, skills, school, career, technical, programs, schools, week, workforce, program, technical education, based, opportunities, jobs, student, children, high, help, path, district, hands, teachers, learn, life, educational, learning, best, kids, parents, lives, proud, training, century, job, country, development, rise, gap, needs, individuals, careers, skilled, families, national, traditional, college, encourage, choice, stem'\n",
      " 'Ideal Point = -0.5, Topic = 32: education, students, school, schools, programs, skills, workforce, student, career, program, opportunities, high, technical, college, children, help, educational, teachers, training, learning, based, rise, parents, country, learn, district, week, technical education, job, higher, best, stem, life, careers, nation, needs, jobs, public, high school, national, generation, kids, lives, proud, provide, gap, path, century, teacher, succeed'\n",
      " 'Ideal Point = 0.0, Topic = 32: education, students, school, schools, college, student, workforce, programs, high, skills, program, opportunities, training, educational, teachers, learning, help, children, higher, career, rise, colleges, country, public, parents, universities, higher education, high school, institutions, technical, generation, learn, provide, stem, district, nation, community, job, university, better, percent, youth, based, teacher, system, careers, next, best, degree, public schools'\n",
      " 'Ideal Point = 0.5, Topic = 32: education, students, school, college, schools, student, workforce, high, programs, higher, training, colleges, educational, institutions, universities, access, higher education, opportunities, learning, program, teachers, public, help, children, rise, colleagues, state, skills, high school, provide, generation, public schools, graduate, country, secretary, university, community, percent, act, districts, parents, communities, youth, devos, nation, historically, stem, resources, academic, better'\n",
      " 'Ideal Point = 1.0, Topic = 32: students, education, college, school, secretary, schools, access, student, devos, colleges, higher, colleagues, institutions, universities, state, higher education, historically, high, training, workforce, diversity, leadership, educational, act, programs, minority, public, color, graduate, public schools, research, achievement, districts, financial, learning, underserved, resources, percent, university, teachers, high school, communities, serving, provide, community, rise, opportunities, equity, help, generation'\n",
      " '========================================================================================================================'\n",
      " 'Ideal Point = -1.0, Topic = 33: veterans, va, veteran, rise, department, care, heroes, nation, nation veterans, grateful, receive, program, act, secretary, military, best, accountability, supporting, congressman, serving, nation heroes, consume, colleagues, served, employees, women, access, ensure, deserve, help, leadership, possible, reserve, mission, men, serve, benefits, services, servicemembers, home, healthcare, balance, fellow, medical, choice, provide, active, gi, eligible, disabled'\n",
      " 'Ideal Point = -0.5, Topic = 33: veterans, va, veteran, care, department, rise, nation, program, receive, nation veterans, military, act, women, benefits, colleagues, heroes, services, deserve, ensure, served, access, help, servicemembers, secretary, provide, men, serve, healthcare, disabled, balance, country, home, grateful, serving, supporting, medical, assistance, best, eligible, earned, disability, families, reserve, gi, post, consume, congressman, transition, accountability, health'\n",
      " 'Ideal Point = 0.0, Topic = 33: veterans, va, veteran, care, benefits, women, department, nation, colleagues, services, rise, deserve, military, program, ensure, receive, provide, servicemembers, act, help, access, served, healthcare, serve, country, disabled, men, balance, home, disability, earned, families, transition, post, assistance, nation veterans, medical, life, eligible, civilian, secretary, health, spouses, gi, serving, reserve, stress, supporting, organizations, often'\n",
      " 'Ideal Point = 0.5, Topic = 33: veterans, va, veteran, benefits, care, women, services, colleagues, deserve, provide, ensure, life, servicemembers, help, military, nation, country, program, access, healthcare, disabled, serve, department, receive, served, act, balance, men, transition, families, rise, post, disability, earned, home, burn, civilian, assistance, face, spouses, traumatic stress, lives, medical, women veterans, health, post traumatic, post traumatic stress, eligible, legislation, line'\n",
      " 'Ideal Point = 1.0, Topic = 33: veterans, va, veteran, benefits, life, burn, women, services, colleagues, provide, face, deserve, ensure, care, servicemembers, permanent, help, country, women veterans, lives, male, including, line, traumatic stress, healthcare, access, post traumatic, military, returning, disabled, post traumatic stress, legislation, transition, serve, brave, families, female, outreach, balance, additional, post, specific, sacrifice, disability, pit, served, men, program, earned, disabilities'\n",
      " '========================================================================================================================'\n",
      " 'Ideal Point = -1.0, Topic = 34: businesses, trump, program, covid, speed, pandemic, keep, nation, americans, operation, america, help, together, paycheck, doors, employees, virus, district, country, vaccine, protection, coronavirus, open, weeks, unprecedented, cares, american, protection program, relief, paycheck protection, crisis, ppp, paycheck protection program, reopen, rise, reopening, deliver, economy, effective, week, provide, owners, cares act, livelihoods, families, workers, days, act, defeat, outbreak'\n",
      " 'Ideal Point = -0.5, Topic = 34: covid, businesses, pandemic, help, americans, coronavirus, relief, crisis, keep, virus, nation, workers, american, program, country, act, america, families, economy, cares, provide, rise, paycheck, together, vaccine, protection, weeks, needed, district, trump, unprecedented, employees, health, protection program, safe, week, local, paycheck protection, economic, millions, cares act, paycheck protection program, ppp, front, doors, safely, open, stay, lines, billion'\n",
      " 'Ideal Point = 0.0, Topic = 34: pandemic, covid, businesses, help, crisis, workers, relief, coronavirus, act, americans, families, health, virus, provide, american, economic, local, economy, needed, billion, country, keep, rise, testing, heroes, emergency, unemployment, cares, state, lives, public, first, safe, millions, package, nation, communities, legislation, struggling, hospitals, america, vaccine, public health, essential, critical, protection, funding, heroes act, governments, weeks'\n",
      " 'Ideal Point = 0.5, Topic = 34: pandemic, covid, workers, health, act, crisis, testing, relief, families, coronavirus, help, heroes, businesses, billion, emergency, economic, local, heroes act, unemployment, provide, state, public, legislation, lives, package, americans, public health, governments, needed, essential, communities, first, virus, response, american, economy, direct, protect, rise, postal, payments, local governments, country, care, healthcare, millions, food, pass, safe, childcare'\n",
      " 'Ideal Point = 1.0, Topic = 34: testing, pandemic, health, workers, heroes act, heroes, act, emergency, tracing, covid, billion, unemployment, crisis, direct, families, legislation, governments, public health, relief, state, public, economic, essential, package, local, lives, passed, response, protect, coronavirus, payments, food, help, communities, childcare, provide, first, care, benefits, local governments, postal, pass, unemployment insurance, suffering, sick, democrats, needed, treatment, businesses, essential workers'\n",
      " '========================================================================================================================'\n",
      " 'Ideal Point = -1.0, Topic = 35: thereto, signature, sent, state, election, votes, speech, officials, legislature, free speech, elections, presidential, states, passed, ballot, mail, state legislature, ballots, elected, candidate, voters, free, voting, elected officials, politicians, integrity, election process, registration, democrat, local officials, america, legislatures, electoral, local, home state, voter, match, fraud, counted, legislators, secretary, state legislatures, campaign, american, candidates, governor, system, mandate, election officials, count'\n",
      " 'Ideal Point = -0.5, Topic = 35: election, state, elections, voting, votes, officials, voters, ballot, states, sent, signature, presidential, voter, legislature, elected, ballots, speech, mail, thereto, free, electoral, integrity, candidate, elected officials, campaign, registration, american, system, counted, cast, citizens, political, campaigns, fraud, candidates, free speech, local, america, passed, politicians, process, state legislature, americans, legislatures, democracy, election process, presidential election, voter registration, count, foreign'\n",
      " 'Ideal Point = 0.0, Topic = 35: election, voting, elections, state, voters, voter, democracy, ballot, political, states, officials, votes, campaign, electoral, elected, system, americans, american, ballots, citizens, presidential, cast, campaigns, democratic, integrity, registration, voting rights, foreign, counted, free, candidates, elected officials, influence, act, fraud, government, mail, rights, laws, power, fair, candidate, process, polling, legislature, protect, box, money, local, poll'\n",
      " 'Ideal Point = 0.5, Topic = 35: democracy, voting, election, elections, voting rights, voter, voters, political, democratic, rights, voting rights act, act, americans, state, suppression, restore, protect, rights act, voter suppression, money, ballot, campaign, system, states, government, citizens, foreign, american, influence, cast, electoral, politics, campaigns, interests, polling, special, country, elected, power, officials, interference, fair, laws, early, integrity, box, registration, ballots, polls, voices'\n",
      " 'Ideal Point = 1.0, Topic = 35: democracy, voting rights, voting, voting rights act, suppression, voter suppression, election, rights act, elections, rights, political, voter, restore, act, voters, protect, democratic, money, interests, americans, politics, government, citizens united, special, special interests, country, influence, corruption, foreign, early, system, citizens, dark, voices, polling, campaign, american, interference, cast, campaigns, polls, suppress, power, prevent, ballot, electoral, fair, id, states, box'\n",
      " '========================================================================================================================'\n",
      " 'Ideal Point = -1.0, Topic = 36: measure, land, forest, national, adoption, acres, management, area, lands, county, federal, state, property, local, forests, western, forest management, park, national forest, public, timber, manage, congressman, areas, private, consume, interior, balance, reserve, counties, district, national park, located, resources, natural resources, federal lands, within, million acres, rights, natural, site, communities, surrounding, owned, environmental, development, access, land management, local communities, federal land'\n",
      " 'Ideal Point = -0.5, Topic = 36: land, national, lands, forest, area, acres, park, state, management, federal, public, local, adoption, balance, county, measure, property, resources, areas, natural, national park, interior, consume, natural resources, indian, forests, reserve, communities, district, tribes, public lands, tribal, site, historic, native, national forest, western, recreation, private, conservation, within, tribe, wilderness, development, act, manage, congressman, located, parks, access'\n",
      " 'Ideal Point = 0.0, Topic = 36: land, national, lands, park, public, state, tribal, balance, federal, area, native, local, indian, resources, natural, forest, tribes, acres, public lands, historic, management, natural resources, communities, national park, act, areas, interior, consume, conservation, parks, colleagues, site, legislation, protect, property, district, native american, reserve, county, american, recreation, tribe, sites, wildlife, generations, preserve, wilderness, river, preservation, important'\n",
      " 'Ideal Point = 0.5, Topic = 36: national, land, tribal, native, lands, park, indian, colleagues, public, tribes, american, protect, natural, native american, balance, resources, act, historic, state, public lands, local, conservation, federal, parks, communities, cultural, legislation, protecting, natural resources, area, wildlife, places, sites, national park, preserve, preservation, generations, important, refuge, areas, interior, consume, forest, river, site, nation, native americans, sovereignty, tribe, heritage'\n",
      " 'Ideal Point = 1.0, Topic = 36: tribal, colleagues, native, american, protect, native american, national, indian, protecting, tribes, land, cultural, act, park, lands, natural, sovereignty, public, historic, americans, resources, balance, nations, places, legislation, public lands, parks, conservation, wildlife, native americans, iconic, refuge, protection, country, rise, sites, preservation, preserve, communities, state, indigenous, important, generations, peoples, brothers, nation, national parks, treaty, natural resources, local'\n",
      " '========================================================================================================================'\n",
      " 'Ideal Point = -1.0, Topic = 37: act, jobs act, businesses, tax, jobs, district, paychecks, reform, employees, tax reform, code, unemployment, keep, economy, standard, rates, historic, tax code, rate, hard earned, family, job creators, first, reforms, creators, hard, savings, job, seeing, money, bonuses, hardworking, since, families, taxes, confidence, proud, american, standard deduction, workers, relief, paycheck, optimism, growth, positive, americans, good news, policies, home, earned'\n",
      " 'Ideal Point = -0.5, Topic = 37: tax, jobs, reform, act, tax reform, families, taxes, jobs act, businesses, american, code, economy, cuts, americans, district, money, percent, rate, family, tax code, income, tax cuts, pay, hardworking, rates, first, keep, growth, paychecks, unemployment, hard, means, employees, job, savings, america, taxpayers, cut, middle, wages, home, lower, relief, since, class, earned, workers, standard, benefits, hard earned'\n",
      " 'Ideal Point = 0.0, Topic = 37: tax, cuts, taxes, families, american, percent, americans, pay, middle, class, cut, tax cuts, jobs, income, middle class, money, reform, trillion, america, economy, budget, tax reform, plan, tax cut, million, republican, benefits, increase, state, code, billion, family, hardworking, rate, republicans, average, corporations, debt, trump, growth, economic, tax code, dollars, country, better, taxpayers, means, raise, wealthy, deficit'\n",
      " 'Ideal Point = 0.5, Topic = 37: tax, corporations, republican, budget, class, trillion, middle, cut, middle class, republicans, cuts, wealthy, debt, wealthiest, percent, pay, medicare, taxes, scam, deficit, families, plan, americans, tax scam, american, social security, tax cut, billion, security, top, billionaires, medicaid, social, tax cuts, massive, trump, rich, million, deal, income, benefit, breaks, republican tax, america, gop, children, class families, dollars, healthcare, tax breaks'\n",
      " 'Ideal Point = 1.0, Topic = 37: corporations, tax scam, scam, wealthiest, republican, budget, billionaires, medicare, republicans, medicaid, wealthy, trillion, debt, tax, deal, better deal, republican tax, deficit, social security, class, middle class, middle, millionaires, healthcare, cut, massive, gop, breaks, security, tax breaks, rich, social, infrastructure, top percent, massive tax, top, big corporations, plan, billion, education, richest, tax cut, cuts, trump, pay, programs, class families, percent, tax plan, deserve better'\n",
      " '========================================================================================================================'\n",
      " 'Ideal Point = -1.0, Topic = 38: fire, forests, district, trees, state, disaster, help, smoke, lives, counties, wildfires, fires, flood, burned, homes, way, communities, devastating, seen, wildfire, together, resilient, helping, firefighters, weather, lost, hurricane, season, first, rise, responders, county, storm, severe, first responders, neighbors, catastrophic, emergency, ground, damage, firsthand, rescue, destroyed, loss, areas, families, management, air, southeast, hit'\n",
      " 'Ideal Point = -0.5, Topic = 38: disaster, fire, help, district, hurricane, homes, state, communities, lives, flood, wildfires, emergency, devastating, fires, damage, disasters, storm, lost, relief, rise, season, recovery, forests, hit, first, fema, catastrophic, wildfire, weather, areas, harvey, destroyed, way, seen, home, natural, hurricanes, flooding, recover, resilient, helping, together, burned, county, severe, responders, rebuild, loss, response, ground'\n",
      " 'Ideal Point = 0.0, Topic = 38: disaster, hurricane, disasters, help, emergency, homes, communities, relief, flood, recovery, islands, hurricanes, damage, natural, lives, fire, harvey, state, devastating, district, fema, wildfires, natural disasters, recover, assistance, storm, still, hit, virgin, fires, flooding, rebuild, virgin islands, federal, maria, response, areas, lost, rise, affected, home, caused, season, devastation, hurricane harvey, provide, needed, destroyed, impacted, catastrophic'\n",
      " 'Ideal Point = 0.5, Topic = 38: virgin, islands, disaster, virgin islands, disasters, hurricane, hurricanes, natural, relief, natural disasters, recovery, emergency, maria, americans, help, assistance, homes, communities, harvey, damage, territories, supplemental, still, needs, flood, fema, recover, rebuild, disaster relief, lives, hurricane harvey, federal, provide, citizens, government, caused, fellow, flooding, billion, power, thousands, hit, aid, devastating, affected, storm, devastation, hurricane maria, infrastructure, response'\n",
      " 'Ideal Point = 1.0, Topic = 38: virgin, virgin islands, islands, americans, disaster, disasters, territories, supplemental, natural disasters, hurricane, hurricanes, maria, natural, government, caribbean, relief, recovery, assistance, needs, fellow, hurricane maria, power, billion, emergency, harvey, still, disaster relief, army, housing, administration, citizens, infrastructure, hurricane harvey, damage, army corps, provide, fellow americans, homes, communities, american citizens, rebuild, suffering, funding, caused, help, haiti, aid, recover, crisis, thousands'\n",
      " '========================================================================================================================'\n",
      " 'Ideal Point = -1.0, Topic = 39: rise, women, law, enforcement, law enforcement, men, line, sheriff, department, police, county, families, officers, deputy, blue, county sheriff, safe, protect, communities, sacrifice, week, keep, duty, put, safety, lives, brave, district, serve, uniform, chief, nation, enforcement officers, thin, law enforcement officers, community, patrol, home, national, never, heroes, local, police department, thin blue, fire department, thin blue line, fire, blue line, protecting, police week'\n",
      " 'Ideal Point = -0.5, Topic = 39: enforcement, law, law enforcement, police, officers, line, department, rise, communities, protect, women, men, safe, sheriff, lives, safety, duty, local, county, families, community, enforcement officers, law enforcement officers, week, serve, keep, put, first, blue, deputy, nation, national, brave, state, police department, police officers, chief, sacrifice, first responders, fire, responders, county sheriff, district, killed, local law, country, local law enforcement, protecting, uniform, heroes'\n",
      " 'Ideal Point = 0.0, Topic = 39: enforcement, law enforcement, law, police, officers, local, communities, protect, lives, first, department, line, responders, community, first responders, safety, police officers, law enforcement officers, enforcement officers, duty, state, safe, killed, men, serve, local law, justice, national, local law enforcement, police department, rise, nation, week, fire, public safety, sheriff, keep, women, put, enforcement agencies, families, brave, law enforcement agencies, public, country, county, departments, chief, death, force'\n",
      " 'Ideal Point = 0.5, Topic = 39: enforcement, law enforcement, police, law, officers, policing, local, responders, floyd, first responders, first, justice, police officers, lives, death, communities, policing act, protect, community, act, state, law enforcement officers, killed, enforcement officers, public safety, floyd justice, safety, local law, enforcement agencies, crime, department, force, local law enforcement, colleagues, law enforcement agencies, line, duty, departments, trust, lives matter, firefighters, public, safe, national, serve, police department, training, federal, nation, fire'\n",
      " 'Ideal Point = 1.0, Topic = 39: policing, policing act, enforcement, floyd, police, law enforcement, floyd justice, law, officers, lives matter, death, act, brutality, trust, justice, responders, local, first responders, first, police officers, accountability, warrants, public safety, crime, deadly, misconduct, colleagues, force, killed, enforcement agencies, knock, lives, state, community, law enforcement agencies, matter, departments, firefighters, garner, legislation, communities, local law, law enforcement officers, excessive, enforcement officers, let, protect, reform, training, local law enforcement'\n",
      " '========================================================================================================================'\n",
      " 'Ideal Point = -1.0, Topic = 40: budget, spending, debt, national, trillion, national debt, fiscal, balanced, grandchildren, generations, children, spend, balanced budget, balance, control, responsibility, deficit, national security, mandatory, deficits, government, responsible, federal, cut, caps, rein, discretionary, fiscal responsibility, mandatory spending, billion, federal budget, unsustainable, discretionary spending, balancing, within, percent, study, crisis, budgets, past, irresponsible, federal government, serious, reduce, fiscally, discipline, annual, borrow, balances, path'\n",
      " 'Ideal Point = -0.5, Topic = 40: budget, spending, debt, trillion, national, fiscal, balanced, national debt, balance, spend, children, generations, grandchildren, balanced budget, deficit, percent, mandatory, government, federal, control, deficits, responsibility, discretionary, mandatory spending, within, next, billion, cut, caps, responsible, path, national security, discretionary spending, crisis, unsustainable, fiscal responsibility, security, rein, federal budget, borrow, federal government, budgets, decisions, problem, balancing, interest, tough, means, study, generation'\n",
      " 'Ideal Point = 0.0, Topic = 40: debt, spending, budget, trillion, balance, percent, next, fiscal, security, balanced, spend, national, deficit, federal, government, social, mandatory, path, within, national debt, discretionary, interest, deficits, social security, economic, balanced budget, children, mandatory spending, medicare, generations, gdp, pay, means, force, actually, cbo, billion, body, control, start, greatest, crisis, growing, grandchildren, defense, problem, much, responsibility, decisions, numbers'\n",
      " 'Ideal Point = 0.5, Topic = 40: actually, math, society, growth, sisters, tax, brothers, technology, economic, couple, sort, healthcare, turns, things, data, economy, social, social security, promises, population, security, reform, labor, keep, debt, body, economic growth, labor force, percent, behind, numbers, tax reform, walk, spending, coming, policy, model, medicare, next, force, start, immigration, substantially, half, types, grow, demographics, revenues, baby, disruption'\n",
      " 'Ideal Point = 1.0, Topic = 40: society, tax, sisters, brothers, math, technology, actually, growth, sort, tax reform, turns, couple, healthcare, economic growth, labor force, labor, data, immigration, walk, economic, things, population, promises, behind, reform, lots, demographics, keep, economy, disruption, hey, substantially, baby, types, healthy, model, older, amazing, expansion, half, policy, remember, coming, experiment, benefits, certain, moving, code, regulatory, numbers'\n",
      " '========================================================================================================================'\n",
      " 'Ideal Point = -1.0, Topic = 41: aviation, aircraft, air, transportation, flight, traveling, faa, airport, commercial, travel, fly, safety, airports, traffic, flights, motor, flying, airlines, carrier, pilot, carriers, tower, airspace, passengers, planes, passenger, skies, safe, transport, control, safely, system, interstate, crews, pilots, airline, highway, general, accidents, route, airplane, air traffic, infrastructure, routes, tsa, safest, airplanes, drivers, rise, vehicles'\n",
      " 'Ideal Point = -0.5, Topic = 41: air, aviation, transportation, aircraft, flight, airport, faa, traffic, safety, airports, travel, traveling, fly, commercial, flights, airlines, passengers, flying, federal, passenger, safe, planes, air traffic, tsa, pilot, carrier, airline, control, government, system, airspace, carriers, employees, district, rise, shutdown, safely, skies, pilots, motor, public, federal employees, tower, airplane, colleagues, federal workers, pay, transport, plane, highway'\n",
      " 'Ideal Point = 0.0, Topic = 41: federal, government, air, shutdown, employees, transportation, airport, traffic, aviation, pay, safety, federal employees, faa, airports, flight, federal workers, travel, tsa, district, end, air traffic, government shutdown, workers, aircraft, federal government, passengers, reopen, airlines, public, american, rise, keep, security, colleagues, days, passenger, flights, paid, shut, fly, safe, open, constituents, flying, furloughed, coast, thousands, planes, commercial, week'\n",
      " 'Ideal Point = 0.5, Topic = 41: government, shutdown, federal, pay, employees, trump, federal employees, workers, reopen, government shutdown, trump shutdown, federal government, open, end, shut, federal workers, security, american, paid, paycheck, hostage, traffic, let, families, keep, furloughed, hardworking, district, days, air, thousands, airport, border security, wall, tsa, forced, safety, colleagues, public, servants, democrats, constituents, food, airports, week, real, longest, paychecks, transportation, air traffic'\n",
      " 'Ideal Point = 1.0, Topic = 41: trump, government, shutdown, federal, trump shutdown, pay, employees, reopen, workers, government shutdown, open, federal employees, federal government, shut, border security, democrats, security, end, paycheck, wall, hostage, families, federal workers, hardworking, let, paid, american, border, forced, furloughed, food, thousands, keep, days, paychecks, longest, servants, real, district, mortgage, negotiate, deserve, week, uncertainty, workforce, irs, job, colleagues, national, federal workforce'\n",
      " '========================================================================================================================'\n",
      " 'Ideal Point = -1.0, Topic = 42: quo, status quo, status, verify, merit, cards, system, citizenship, visa, american dream, country, program, american, based, legal, card, legal status, dream, daca, give, legally, temporary, citizen, permanent, visas, broken, recipients, population, immigration, brought, end, better, skilled, let, applicant, rise, administration, colleagues, families, fix, nation, english, bring, immigrants, america, countries, return, yet, individuals, children'\n",
      " 'Ideal Point = -0.5, Topic = 42: status, quo, status quo, country, american, dream, citizenship, immigration, system, daca, american dream, legal, program, immigrants, visa, verify, families, merit, permanent, cards, act, temporary, recipients, administration, children, bring, america, nation, let, legal status, dreamers, citizen, give, home, brought, card, visas, parents, colleagues, broken, americans, family, legally, based, end, live, rise, came, countries, individuals'\n",
      " 'Ideal Point = 0.0, Topic = 42: status, country, immigration, dream, immigrants, american, daca, dreamers, families, act, trump, children, citizenship, immigrant, american dream, legal, america, bring, home, administration, program, nation, ban, permanent, fear, family, parents, americans, protect, recipients, dream act, visa, system, thousands, let, temporary, status quo, immigration reform, quo, live, colleagues, communities, came, lives, reform, pass, countries, contribute, citizens, executive'\n",
      " 'Ideal Point = 0.5, Topic = 42: trump, immigration, dreamers, immigrants, country, dream, immigrant, ban, act, families, dream act, daca, american, fear, children, deportation, status, home, america, undocumented, bring, muslim, thousands, administration, nation, communities, family, protect, americans, muslim ban, parents, lives, values, legal, immigration reform, american dream, citizenship, tps, refugees, permanent, trump administration, executive, cruel, program, pass, reform, live, colleagues, refugee, deported'\n",
      " 'Ideal Point = 1.0, Topic = 42: trump, dreamers, ban, immigrants, immigrant, dream act, immigration, deportation, muslim, act, country, dream, fear, undocumented, families, muslim ban, children, daca, thousands, communities, cruel, american, values, home, tps, america, protect, bring, lives, nation, family, administration, trump administration, americans, deported, refugees, parents, paper, anti, rescind, executive, immigration reform, comprehensive, comprehensive immigration, hundreds, refugee, comprehensive immigration reform, pass, reform, promise'\n",
      " '========================================================================================================================'\n",
      " 'Ideal Point = -1.0, Topic = 43: rise, county, community, congratulate, students, district, high, school, state, dedication, best, award, high school, recently, congratulations, proud, outstanding, first, team, named, leadership, association, retirement, hard, luck, sixth, throughout, commitment, area, local, congratulating, football, career, recognizing, championship, national, role, coach, achievement, since, top, serving, truly, dedicated, grateful, first district, university, deserved, honored, place'\n",
      " 'Ideal Point = -0.5, Topic = 43: rise, community, county, school, district, state, congratulate, high, first, proud, high school, team, best, award, dedication, recently, university, leadership, outstanding, congratulations, national, throughout, association, since, named, local, career, dedicated, commitment, hard, role, retirement, area, students, organization, recognizing, serving, director, served, coach, board, college, center, football, recognition, history, led, honored, anniversary, began'\n",
      " 'Ideal Point = 0.0, Topic = 43: community, rise, university, school, first, county, district, state, team, high, proud, congratulate, national, served, leadership, history, high school, since, director, board, center, career, throughout, local, dedicated, organization, college, central, award, best, dr, outstanding, recently, led, role, dedication, world, home, helped, began, congratulations, including, association, commitment, serves, serving, group, known, celebrate, public'\n",
      " 'Ideal Point = 0.5, Topic = 43: university, community, first, history, served, school, born, state, district, center, board, rise, county, former, director, team, national, dr, american, central, since, helped, honoring, miami, degree, public, proud, college, organization, orlando, leadership, high, arts, social, co, church, known, heritage, world, dedicated, council, women, career, serves, led, attended, master, local, including, group'\n",
      " 'Ideal Point = 1.0, Topic = 43: born, orlando, university, caribbean, american, social, orange, jr, former, co, history, miami, activist, attended, graham, general, heritage, community, served, honoring, moved, issues, elected, hispanic, degree, de, arts, center, board, master, first, dr, political, public, helped, married, director, latino, assistant, central, cultural, late, church, women history, culture, naacp, wife, advocate, law school, neighborhood'\n",
      " '========================================================================================================================'\n",
      " 'Ideal Point = -1.0, Topic = 44: victims, human, trafficking, human trafficking, children, sex, law, child, victim, enforcement, crimes, act, justice, end, slavery, modern, fight, crime, sexual, abuse, law enforcement, criminal, awareness, sex trafficking, bring, cases, help, protect, women, violence, legislation, criminals, abused, traffickers, society, local, assault, sexually, sexual assault, stop, found, missing, predators, combat, attention, online, place, accountable, offenders, exploitation'\n",
      " 'Ideal Point = -0.5, Topic = 44: victims, trafficking, human, children, human trafficking, sexual, sex, child, violence, women, victim, law, abuse, justice, crimes, crime, act, assault, enforcement, sexual assault, protect, criminal, cases, fight, domestic, end, sex trafficking, slavery, legislation, help, law enforcement, girls, traffickers, modern, domestic violence, exploitation, rape, safe, prevent, abused, stop, missing, awareness, sexually, combat, criminals, vulnerable, society, bring, state'\n",
      " 'Ideal Point = 0.0, Topic = 44: victims, sexual, violence, trafficking, women, children, assault, human, abuse, domestic, human trafficking, sex, sexual assault, victim, child, domestic violence, crime, justice, crimes, survivors, act, law, girls, protect, cases, criminal, harassment, rape, exploitation, safe, legislation, vulnerable, sex trafficking, enforcement, fight, traffickers, prevent, men, help, colleagues, stop, missing, state, combat, end, law enforcement, forced, sexually, sexual harassment, women act'\n",
      " 'Ideal Point = 0.5, Topic = 44: violence, sexual, women, victims, assault, domestic, survivors, abuse, domestic violence, trafficking, sexual assault, children, harassment, human, women act, victim, crime, girls, child, human trafficking, sex, justice, colleagues, sexual harassment, act, sexual violence, crimes, protect, rape, vulnerable, partner, safe, cases, men, stalking, exploitation, reauthorization, violent, criminal, let, law, dating, percent, intimate, prevention, legislation, perpetrators, prevent, protecting, forced'\n",
      " 'Ideal Point = 1.0, Topic = 44: violence, sexual, women, survivors, domestic, assault, domestic violence, victims, women act, abuse, sexual assault, harassment, sexual violence, partner, reauthorization, trafficking, let, sexual harassment, dating, intimate, colleagues, children, stalking, percent, girls, violence sexual, violent, persons, men, congresswoman, crime, prevention, victim, violence sexual assault, vulnerable, perpetrators, rape, safe, physical, judiciary, human, services, protect, justice, protecting, child, youth, act, exploitation, survivor'\n",
      " '========================================================================================================================'\n",
      " 'Ideal Point = -1.0, Topic = 45: energy, natural, production, gas, oil, reliable, affordable, electricity, natural gas, power, american energy, resources, jobs, american, percent, coal, commerce, source, domestic, energy production, dominance, nuclear, supply, security, emissions, produced, nation, development, environmentally, policy, carbon, hydropower, abundant, independence, petroleum, industry, producer, country, mining, electric, sources, cost, america, energy independence, clean, way, minerals, reserves, producing, fuel'\n",
      " 'Ideal Point = -0.5, Topic = 45: energy, gas, natural, oil, power, production, natural gas, electricity, emissions, climate, carbon, commerce, jobs, coal, clean, reliable, percent, resources, american, fuel, electric, affordable, country, environment, nuclear, environmental, industry, en, nation, policy, bloc, climate change, development, sources, change, security, cost, en bloc, source, colleagues, america, economy, air, american energy, energy production, supply, infrastructure, plants, domestic, reduce'\n",
      " 'Ideal Point = 0.0, Topic = 45: energy, climate, change, climate change, gas, power, oil, clean, carbon, en, emissions, natural, bloc, en bloc, fuel, commerce, environment, colleagues, renewable, world, natural gas, environmental, coal, air, clean energy, electric, reduce, paris, production, balance, economy, country, global, jobs, infrastructure, electricity, renewable energy, efficiency, industry, fossil, percent, rise, technologies, sources, plants, cost, america, lead, fuels, policy'\n",
      " 'Ideal Point = 0.5, Topic = 45: climate, change, climate change, energy, en, clean, bloc, clean energy, crisis, en bloc, gas, planet, climate crisis, carbon, global, renewable, world, efficiency, renewable energy, balance, power, paris, colleagues, emissions, science, fuel, pollution, oil, environment, effects, energy efficiency, already, reduce, impacts, air, environmental, threat, warming, weather, extreme, trump, administration, greenhouse, rise, generations, fossil, economy, real, infrastructure, health'\n",
      " 'Ideal Point = 1.0, Topic = 45: change, climate, climate change, crisis, climate crisis, planet, energy, science, clean energy, threat, en, warming, pollution, bloc, global, trump, en bloc, efficiency, combat, effects, clean, renewable energy, health, scientists, generations, balance, energy efficiency, weather, already, bold, world, renewable, paris, extreme, impacts, rising, real, extreme weather, colleagues, challenge, public, carbon, temperatures, transition, trump administration, earth, sea, administration, gas, plan'\n",
      " '========================================================================================================================'\n",
      " 'Ideal Point = -1.0, Topic = 46: taxpayer, dollars, program, taxpayers, money, funds, funding, taxpayer dollars, fund, billion, tax dollars, million, cost, federal, spent, government, since, used, american taxpayer, project, programs, projects, pay, funded, percent, infrastructure, grant, balance, states, appropriations, dollar, increase, responsible, federal government, nearly, american taxpayers, fiscal, taxpayer money, construction, reforms, additional, waste, reserve, fiscally, already, currently, nation, billions, estimated, another'\n",
      " 'Ideal Point = -0.5, Topic = 46: funding, dollars, program, taxpayer, funds, billion, fund, million, money, federal, taxpayers, programs, taxpayer dollars, government, cost, appropriations, infrastructure, projects, funded, spent, increase, fiscal, grant, percent, balance, additional, used, spending, budget, federal government, since, project, states, nation, reserve, provides, grants, pay, tax dollars, construction, dollar, amount, administration, needs, level, included, transportation, rise, waste, colleagues'\n",
      " 'Ideal Point = 0.0, Topic = 46: funding, funds, billion, program, million, fund, programs, dollars, federal, appropriations, money, budget, taxpayer, infrastructure, fiscal, increase, spending, government, additional, projects, provides, grant, funded, grants, includes, taxpayers, provide, percent, nation, balance, cost, needs, critical, administration, federal government, reserve, resources, development, priorities, transportation, department, level, taxpayer dollars, spent, important, ensure, agencies, including, amount, rise'\n",
      " 'Ideal Point = 0.5, Topic = 46: funding, billion, programs, funds, budget, million, appropriations, program, fund, investments, fiscal, spending, federal, provides, increase, critical, includes, infrastructure, provide, additional, cuts, development, department, services, health, national, priorities, grants, dollars, education, money, help, needs, resources, including, government, defense, projects, administration, families, grant, communities, important, research, nation, cut, funded, agencies, ensure, american'\n",
      " 'Ideal Point = 1.0, Topic = 46: families, funding, education, investments, health, defense, budget, cuts, nondefense, programs, critical, appropriations, services, billion, includes, labor, million, research, spending, funds, provides, communities, fiscal, security, help, provide, department, national, development, american families, increase, american, fund, domestic, program, head start, priorities, including, cut, federal, infrastructure, operations, invest, additional, discretionary, riders, resources, investing, water, caps'\n",
      " '========================================================================================================================'\n",
      " 'Ideal Point = -1.0, Topic = 47: democrat, aisle, political, side, colleagues, democrats, politics, american, solutions, opposition, partisan, bipartisan, together, let, democratic, real, law, put, solve, unfortunately, problem, constituents, body, problems, democratic colleagues, republicans, america, majority, putting, find, issues, sides, oppose, solution, instead, signed, actually, already, focus, better, rather, something, chamber, way, heard, country, serious, policy, republican, messaging'\n",
      " 'Ideal Point = -0.5, Topic = 47: democrats, aisle, side, colleagues, bipartisan, american, republicans, political, democrat, together, partisan, let, majority, democratic, republican, politics, opposition, put, way, body, process, sides, instead, issues, constituents, law, passed, solutions, legislation, real, unfortunately, pass, find, actually, government, oppose, better, country, nothing, something, party, chamber, solve, good, hope, americans, leadership, problem, signed, solution'\n",
      " 'Ideal Point = 0.0, Topic = 47: democrats, republicans, republican, bipartisan, majority, aisle, side, colleagues, american, together, let, democratic, process, partisan, way, pass, passed, legislation, government, question, rules, party, hope, friends, political, put, balance, bring, week, sides, previous, body, instead, leadership, voted, issues, open, democrat, yet, another, good, nothing, friend, minority, country, constituents, end, americans, something, consume'\n",
      " 'Ideal Point = 0.5, Topic = 47: republican, republicans, majority, bipartisan, democrats, pass, process, legislation, passed, question, way, rules, bring, let, together, aisle, previous, government, friends, republican colleagues, closed, balance, american, democratic, side, week, hope, previous question, open, party, act, colleagues, ought, frankly, keep, partisan, next, friend, voted, defeat, consume, leadership, end, regular, another, minority, offer, republican leadership, votes, yet'\n",
      " 'Ideal Point = 1.0, Topic = 47: republican, ought, republicans, majority, republican leadership, closed, republican colleagues, act, pass, keep, bipartisan, mcconnell, republican majority, question, rules, bring, previous question, process, frankly, legislation, previous, democrats, passed, next, open, friends, balance, way, defeat, government, week, regular, responsibility, insert, hope, next week, consume, white, days, party, fiscal, friend, cr, shut, conference, repeal, let, end, history, together'\n",
      " '========================================================================================================================'\n",
      " 'Ideal Point = -1.0, Topic = 48: civil, women, rights, history, american, civil war, equal, movement, state, civil rights, nation, district, african, martin, centennial, statehood, dr, african american, nation capital, equality, capital, colleagues, luther, suffrage, story, era, anniversary, female, union, american history, full, national, historic, ratification, citizens, jr, first african, historical, ever, americans, martin luther, however, first, gender, first african american, important, museum, passed, territory, celebrate'\n",
      " 'Ideal Point = -0.5, Topic = 48: civil, women, rights, american, history, african, equal, civil rights, african american, movement, nation, equality, americans, state, martin, discrimination, dr, district, luther, civil war, colleagues, gender, first, historic, country, martin luther, full, anniversary, race, statehood, era, union, still, woman, rise, american history, racial, first african, first african american, men, national, change, jr, citizens, fought, important, rights movement, female, civil rights movement, act'\n",
      " 'Ideal Point = 0.0, Topic = 48: rights, civil, african, women, civil rights, american, african american, equal, americans, equality, history, discrimination, nation, color, racial, movement, african americans, country, justice, first, gender, race, white, still, martin, act, men, state, luther, historic, fight, rise, dr, woman, colleagues, martin luther, caucus, america, district, fought, racism, law, full, community, communities, rights act, change, progress, voting, education'\n",
      " 'Ideal Point = 0.5, Topic = 48: african, rights, color, civil, civil rights, americans, justice, african american, discrimination, african americans, caucus, equality, women, american, racial, equal, white, leadership, country, nation, act, history, community, communities, congresswoman, still, lgbtq, fight, race, men, racism, first, america, gender, tonight, rise, movement, woman, law, education, injustice, proud, systemic, progress, voting, discriminatory, let, martin, historic, martin luther'\n",
      " 'Ideal Point = 1.0, Topic = 48: color, caucus, justice, african, leadership, african americans, tonight, congresswoman, rights, americans, discrimination, racial, civil rights, community, african american, lgbtq, communities, white, equality, civil, act, systemic, american, racism, women, fight, country, equal, still, america, tremendous, men, disparities, race, disproportionately, discriminatory, let, nation, asian, injustice, systemic racism, first, gender, education, history, housing, proud, inequities, transgender, law'\n",
      " '========================================================================================================================'\n",
      " 'Ideal Point = -1.0, Topic = 49: care, dr, medical, healthcare, health, services, hospital, patients, providers, center, provide, hospitals, practice, providing, patient, centers, healthcare providers, facilities, state, physician, access, doctors, medicine, physicians, professionals, rise, emergency, commerce, medicare, practicing, home, facility, children, cms, nursing, licensed, clinic, community, healthcare professionals, receive, medical center, program, doctor, energy, healthy, fully, system, nurses, term, dental'\n",
      " 'Ideal Point = -0.5, Topic = 49: care, medical, health, healthcare, services, hospital, centers, patients, providers, dr, hospitals, center, provide, children, patient, providing, community, program, doctors, access, professionals, physician, practice, facilities, physicians, nursing, medicine, healthcare providers, state, home, emergency, medicare, nurses, rise, doctor, clinics, clinic, commerce, health centers, medical care, term, provider, medicaid, nurse, community health, receive, facility, critical, homes, medical center'\n",
      " 'Ideal Point = 0.0, Topic = 49: health, care, medical, healthcare, centers, children, services, program, community, hospital, providers, patients, hospitals, health centers, community health, provide, nursing, children health, center, doctors, insurance program, professionals, access, community health centers, children health insurance, patient, health insurance program, providing, nurses, home, clinics, physician, physicians, insurance, health insurance, doctor, medicaid, medical care, medicine, medicare, programs, facilities, nurse, state, primary, emergency, funding, clinic, term, dr'\n",
      " 'Ideal Point = 0.5, Topic = 49: health, children, program, medical, community, centers, care, children health, health centers, community health, insurance program, insurance, healthcare, community health centers, children health insurance, health insurance, health insurance program, services, nursing, funding, hospitals, hospital, providers, million children, programs, clinics, nurses, doctors, patients, fund, professionals, medicaid, home, access, provide, primary, doctor, nurse, kids, reauthorize, medical care, reauthorization, rural, center, patient, term, physician, provider, providing, critical'\n",
      " 'Ideal Point = 1.0, Topic = 49: insurance, children, children health, insurance program, program, health insurance, community health, health, community, health centers, health insurance program, children health insurance, community health centers, centers, million children, fund, medical, funding, care, healthcare, rural, expire, nursing, reauthorization, programs, reauthorize, prevention, services, clinics, primary, medicaid, nurses, depend, kids, colleagues, based, home, nurse, hospitals, doctors, professionals, public health, doctor, serve, medical care, rely, primary care, extension, underserved, providers'\n",
      " '========================================================================================================================']\n",
      "\n",
      "\n"
     ]
    }
   ],
   "source": [
    "utils.print_topics(objective_topic_loc, \n",
    "                   objective_topic_scale, \n",
    "                   ideological_topic_loc, \n",
    "                   ideological_topic_scale, \n",
    "                   vocabulary, \n",
    "                   50)"
   ]
  },
  {
   "cell_type": "code",
   "execution_count": 47,
   "metadata": {},
   "outputs": [],
   "source": [
    "%%capture cap --no-stderr\n",
    "utils.print_topics(objective_topic_loc, \n",
    "                   objective_topic_scale, \n",
    "                   ideological_topic_loc, \n",
    "                   ideological_topic_scale, \n",
    "                   vocabulary, \n",
    "                   20)\n",
    "with open('../../speeches_results/topics.txt', 'w') as f:\n",
    "    f.write(cap.stdout)\n",
    "#may have to run this cell twice to make it work"
   ]
  },
  {
   "cell_type": "code",
   "execution_count": 48,
   "metadata": {},
   "outputs": [
    {
     "name": "stdout",
     "output_type": "stream",
     "text": [
      "1880\n"
     ]
    }
   ],
   "source": [
    "legis_info = json.load(open(os.path.join(project_dir, 'legislator-info-1990-2020.json')))\n",
    "print(len(legis_info))"
   ]
  },
  {
   "cell_type": "code",
   "execution_count": 49,
   "metadata": {},
   "outputs": [],
   "source": [
    "legis_id_to_info = {}\n",
    "for x in legis_info:\n",
    "    legis_id_to_info[x['id']['bioguide']] = x"
   ]
  },
  {
   "cell_type": "code",
   "execution_count": 50,
   "metadata": {},
   "outputs": [
    {
     "name": "stdout",
     "output_type": "stream",
     "text": [
      "490\n"
     ]
    }
   ],
   "source": [
    "parties = []\n",
    "for a in author_map:\n",
    "    x = legis_id_to_info[a]\n",
    "    parties.append(x['terms'][-1]['party'])\n",
    "print(len(parties))"
   ]
  },
  {
   "cell_type": "code",
   "execution_count": 51,
   "metadata": {},
   "outputs": [
    {
     "name": "stdout",
     "output_type": "stream",
     "text": [
      "490\n"
     ]
    }
   ],
   "source": [
    "names = []\n",
    "for a in author_map:\n",
    "    x = legis_id_to_info[a]\n",
    "    names.append(x['id']['wikipedia'])\n",
    "print(len(names))"
   ]
  },
  {
   "cell_type": "code",
   "execution_count": 52,
   "metadata": {},
   "outputs": [],
   "source": [
    "colors = np.array([\"steelblue\" if p=='Democrat' else \"crimson\" for p in parties])\n",
    "def get_ideological_topics(objective_topic_loc, \n",
    "                           objective_topic_scale,\n",
    "                           ideological_topic_loc, \n",
    "                           ideological_topic_scale,\n",
    "                           ideal_point):\n",
    "    ideological_topic_mean = np.exp(objective_topic_loc +\n",
    "                              ideal_point * ideological_topic_loc +\n",
    "                              (objective_topic_scale ** 2 + \n",
    "                               ideal_point ** 2 * \n",
    "                               ideological_topic_scale ** 2) / 2)\n",
    "    return ideological_topic_mean"
   ]
  },
  {
   "cell_type": "code",
   "execution_count": 53,
   "metadata": {},
   "outputs": [
    {
     "name": "stdout",
     "output_type": "stream",
     "text": [
      "(490,)\n",
      "(490,)\n"
     ]
    }
   ],
   "source": [
    "ideal_points = ideal_point_mean\n",
    "author_map = np.array(author_map)\n",
    "print(author_map.shape)\n",
    "ideal_points = np.array(ideal_points)\n",
    "print(ideal_points.shape)"
   ]
  },
  {
   "cell_type": "code",
   "execution_count": 54,
   "metadata": {},
   "outputs": [
    {
     "name": "stdout",
     "output_type": "stream",
     "text": [
      "490\n"
     ]
    }
   ],
   "source": [
    "bid_to_tbip = {}\n",
    "for i in range(len(author_map)):\n",
    "    bid_to_tbip[author_map[i]] = ideal_points[i]\n",
    "print(len(bid_to_tbip))"
   ]
  },
  {
   "cell_type": "code",
   "execution_count": 55,
   "metadata": {},
   "outputs": [],
   "source": [
    "pickle.dump(bid_to_tbip, open('../../speeches_results/bid_to_tbip_floor_speeches.pkl', 'wb'))"
   ]
  },
  {
   "cell_type": "code",
   "execution_count": 56,
   "metadata": {},
   "outputs": [
    {
     "name": "stdout",
     "output_type": "stream",
     "text": [
      "Overall Idea Point of Liz Cheney = -0.28413472\n"
     ]
    }
   ],
   "source": [
    "name = \"Liz Cheney\"\n",
    "print('Overall Idea Point of ' + name + ' = ' + str(bid_to_tbip[author_map[names.index(name)]]))\n"
   ]
  },
  {
   "cell_type": "code",
   "execution_count": 57,
   "metadata": {},
   "outputs": [
    {
     "name": "stdout",
     "output_type": "stream",
     "text": [
      "Overall Idea Point of Elise Stefanik = -0.11084199\n"
     ]
    }
   ],
   "source": [
    "name = \"Elise Stefanik\"\n",
    "print('Overall Idea Point of ' + name + ' = ' + str(bid_to_tbip[author_map[names.index(name)]]))\n"
   ]
  },
  {
   "cell_type": "markdown",
   "metadata": {},
   "source": [
    "Above can be used to multiply everything with -1 as needed to make it the traditional direction of conservative-liberal axis"
   ]
  },
  {
   "cell_type": "code",
   "execution_count": 58,
   "metadata": {},
   "outputs": [],
   "source": [
    "import chart_studio\n",
    "chart_studio.tools.set_credentials_file(username='pg96', api_key='NDcsdaKUnDc6rrurwLmg')\n",
    "import chart_studio.plotly as py"
   ]
  },
  {
   "cell_type": "code",
   "execution_count": 62,
   "metadata": {},
   "outputs": [],
   "source": [
    "def save_interactive(topic_number):\n",
    "    topic_name = 'Topic ' + str(topic_number)\n",
    "\n",
    "    fig = go.Figure(layout = go.Layout(\n",
    "        paper_bgcolor='rgba(0,0,0,0)',\n",
    "        plot_bgcolor='rgba(0,0,0,0)'))\n",
    "    x_min = -1.0\n",
    "    x_max = 1.0\n",
    "    diff = 0.05\n",
    "    offset = -x_min / diff\n",
    "    scatterplot_location = -0.53\n",
    "\n",
    "    ideal_point_dict = {}\n",
    "    for i in range(int((x_max - x_min) / diff) + 1):\n",
    "        ideal_point_dict[i] = (i - offset) * diff\n",
    "\n",
    "    # Add black line.\n",
    "    fig.add_trace(go.Scatter(x=[x_min, x_max], \n",
    "                             y = [scatterplot_location, scatterplot_location],\n",
    "                             line=dict(color=\"black\", width=1),\n",
    "                             marker=dict(size=1),\n",
    "                             hoverinfo='skip'))\n",
    "\n",
    "    # Add trace for all representatives\n",
    "    fig.add_trace(go.Scatter(\n",
    "        mode=\"markers\",\n",
    "        x=ideal_points, \n",
    "        y=scatterplot_location * np.ones(len(ideal_points)), \n",
    "        text=[x for x in names], \n",
    "        hoverinfo=\"x+text\",\n",
    "        marker=dict(color=colors, size=8)))\n",
    "\n",
    "    num_top_words = 10\n",
    "\n",
    "    # Add bar plots, one for each ideal point\n",
    "    for step in np.arange(len(ideal_point_dict.keys())):\n",
    "        ideological_topic_mean = get_ideological_topics(objective_topic_loc, \n",
    "                                   objective_topic_scale,\n",
    "                                   ideological_topic_loc, \n",
    "                                   ideological_topic_scale,\n",
    "                                   ideal_point_dict[step])\n",
    "        topic_intensities = ideological_topic_mean[topic_number]\n",
    "        top_topic_intensities = np.sort(topic_intensities)[-num_top_words:]\n",
    "        top_topic_words = vocabulary[np.argsort(-topic_intensities)[:num_top_words]][::-1]\n",
    "        fig.add_trace(\n",
    "            go.Bar(\n",
    "                visible=False,\n",
    "                x=top_topic_intensities * 5,\n",
    "                orientation='h',\n",
    "                text=top_topic_words,\n",
    "                textposition='outside',\n",
    "                marker_color='rgb(175,122,197)',\n",
    "                y0=0.529,\n",
    "                dy=0.214,\n",
    "                base=-0.3,\n",
    "                hoverinfo='skip',\n",
    "            ))\n",
    "\n",
    "    fig.update_layout(go.Layout(\n",
    "    yaxis = {'showgrid': False,\n",
    "             'showline': False,\n",
    "             'zeroline': False,\n",
    "            'showticklabels': False,\n",
    "            'fixedrange': True}),\n",
    "    xaxis = {'showgrid': False,\n",
    "             'showline': False,\n",
    "             'zeroline': False,\n",
    "            'showticklabels': False,\n",
    "            'fixedrange': True})\n",
    "    fig.update_yaxes(range=[-0.60, 2.5])\n",
    "    fig.update_xaxes(range=[x_min - 0.01, x_max + 0.02])\n",
    "\n",
    "    # Set default trace\n",
    "    fig.data[len(fig.data) // 2].visible = True\n",
    "\n",
    "    # Create and add slider\n",
    "    steps = []\n",
    "    for i in range(2, len(fig.data)):\n",
    "        step = dict(\n",
    "            method=\"update\",\n",
    "            args=[{\"visible\": [True, True] + [False] * (len(fig.data) - 2)}],  \n",
    "            label=\"{:.2f}\".format(ideal_point_dict[i - 2]),\n",
    "        )\n",
    "        step[\"args\"][0][\"visible\"][i] = True  # Toggle i'th trace to \"visible\"\n",
    "        steps.append(step)\n",
    "\n",
    "    sliders = [dict(\n",
    "        active=(len(fig.data) // 2 - 1),\n",
    "        currentvalue={\"prefix\": \"Ideal Point: \"},\n",
    "        y=0.35,\n",
    "        steps=steps)]\n",
    "\n",
    "    fig.update_layout(sliders=sliders, showlegend=False, \n",
    "                      title={'text': \"Word Usage as a Function of Ideal Point (Topic: {})\".format(topic_name),\n",
    "                             'x': 0.5,\n",
    "                             'y': 0.9},\n",
    "                      xaxis_title='Representative ideal points (hover to see names)',\n",
    "                      annotations = [\n",
    "                                    dict(xref='paper',\n",
    "                                            yref='paper',\n",
    "                                            x=0.5, y=0.255,\n",
    "                                            font={'size': 14},\n",
    "                                            showarrow=False,\n",
    "                                            text ='Move slider to change ideal point')\n",
    "                      ])\n",
    "    #fig.show()\n",
    "    fig.write_html(\"../../speeches_results/interactive_htmls/topic\" + str(topic_ind) + \"_interactive.html\")"
   ]
  },
  {
   "cell_type": "code",
   "execution_count": 63,
   "metadata": {},
   "outputs": [
    {
     "name": "stdout",
     "output_type": "stream",
     "text": [
      "50\n"
     ]
    }
   ],
   "source": [
    "num_topics = objective_topic_mean.shape[0]\n",
    "print(num_topics)"
   ]
  },
  {
   "cell_type": "code",
   "execution_count": 64,
   "metadata": {},
   "outputs": [],
   "source": [
    "for topic_ind in range(num_topics):\n",
    "    save_interactive(topic_ind)"
   ]
  },
  {
   "cell_type": "code",
   "execution_count": 65,
   "metadata": {},
   "outputs": [
    {
     "name": "stdout",
     "output_type": "stream",
     "text": [
      "(58932, 50)\n"
     ]
    }
   ],
   "source": [
    "print(document_mean.shape)"
   ]
  },
  {
   "cell_type": "code",
   "execution_count": 66,
   "metadata": {},
   "outputs": [
    {
     "name": "stdout",
     "output_type": "stream",
     "text": [
      "<class 'pandas.core.frame.DataFrame'>\n",
      "RangeIndex: 58932 entries, 0 to 58931\n",
      "Data columns (total 5 columns):\n",
      "Speaker_Bioguide_ID    58932 non-null object\n",
      "Speaker_Name           58932 non-null object\n",
      "Text                   58932 non-null object\n",
      "Date                   58932 non-null object\n",
      "Legislative Body       58932 non-null object\n",
      "dtypes: object(5)\n",
      "memory usage: 2.2+ MB\n",
      "None\n"
     ]
    },
    {
     "data": {
      "text/html": [
       "<div>\n",
       "<style scoped>\n",
       "    .dataframe tbody tr th:only-of-type {\n",
       "        vertical-align: middle;\n",
       "    }\n",
       "\n",
       "    .dataframe tbody tr th {\n",
       "        vertical-align: top;\n",
       "    }\n",
       "\n",
       "    .dataframe thead th {\n",
       "        text-align: right;\n",
       "    }\n",
       "</style>\n",
       "<table border=\"1\" class=\"dataframe\">\n",
       "  <thead>\n",
       "    <tr style=\"text-align: right;\">\n",
       "      <th></th>\n",
       "      <th>Speaker_Bioguide_ID</th>\n",
       "      <th>Speaker_Name</th>\n",
       "      <th>Text</th>\n",
       "      <th>Date</th>\n",
       "      <th>Legislative Body</th>\n",
       "    </tr>\n",
       "  </thead>\n",
       "  <tbody>\n",
       "    <tr>\n",
       "      <th>0</th>\n",
       "      <td>M001201</td>\n",
       "      <td>Mr. MITCHELL</td>\n",
       "      <td>Mr. Speaker, I rise today in the spirit of Mad...</td>\n",
       "      <td>2017-07-20</td>\n",
       "      <td>House</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>1</th>\n",
       "      <td>B001250</td>\n",
       "      <td>Mr. BISHOP of Utah</td>\n",
       "      <td>Mr. Chair, I include in the Record my statemen...</td>\n",
       "      <td>2017-07-20</td>\n",
       "      <td>House</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>2</th>\n",
       "      <td>B001250</td>\n",
       "      <td>Mr. BISHOP of Utah</td>\n",
       "      <td>Mr. Chair, I yield 5 minutes to the gentleman ...</td>\n",
       "      <td>2017-07-20</td>\n",
       "      <td>House</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>3</th>\n",
       "      <td>Y000033</td>\n",
       "      <td>Mr. YOUNG of Alaska</td>\n",
       "      <td>Mr. Chairman, this is an issue that should hav...</td>\n",
       "      <td>2017-07-20</td>\n",
       "      <td>House</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>4</th>\n",
       "      <td>G000551</td>\n",
       "      <td>Mr. GRIJALVA</td>\n",
       "      <td>Mr. Chairman, I yield myself such time as I ma...</td>\n",
       "      <td>2017-07-20</td>\n",
       "      <td>House</td>\n",
       "    </tr>\n",
       "  </tbody>\n",
       "</table>\n",
       "</div>"
      ],
      "text/plain": [
       "  Speaker_Bioguide_ID         Speaker_Name  \\\n",
       "0             M001201         Mr. MITCHELL   \n",
       "1             B001250   Mr. BISHOP of Utah   \n",
       "2             B001250   Mr. BISHOP of Utah   \n",
       "3             Y000033  Mr. YOUNG of Alaska   \n",
       "4             G000551         Mr. GRIJALVA   \n",
       "\n",
       "                                                Text        Date  \\\n",
       "0  Mr. Speaker, I rise today in the spirit of Mad...  2017-07-20   \n",
       "1  Mr. Chair, I include in the Record my statemen...  2017-07-20   \n",
       "2  Mr. Chair, I yield 5 minutes to the gentleman ...  2017-07-20   \n",
       "3  Mr. Chairman, this is an issue that should hav...  2017-07-20   \n",
       "4  Mr. Chairman, I yield myself such time as I ma...  2017-07-20   \n",
       "\n",
       "  Legislative Body  \n",
       "0            House  \n",
       "1            House  \n",
       "2            House  \n",
       "3            House  \n",
       "4            House  "
      ]
     },
     "execution_count": 66,
     "metadata": {},
     "output_type": "execute_result"
    }
   ],
   "source": [
    "speeches_data = pd.read_csv(os.path.join(project_dir, \"finalized_tbip_speech_set_raw_original_data_floor_speeches_house_after_removing_procedural_speeches.csv\"))\n",
    "print(speeches_data.info())\n",
    "speeches_data.head()"
   ]
  },
  {
   "cell_type": "code",
   "execution_count": 67,
   "metadata": {},
   "outputs": [],
   "source": [
    "final_legis_info_and_tbip_data = pd.read_csv('../../legislator_info_and_tbip_congresses_115_and_116.csv')\n",
    "# NOTE: while above file is ultimately created using the ideal point estimates... we only create these other files\n",
    "# as resulting files for legislators ultimately retained in the final file containing everything used for research.\n",
    "\n",
    "included_bid_to_tbip = dict(zip(final_legis_info_and_tbip_data.Bioguide_ID, \n",
    "                       final_legis_info_and_tbip_data.TBIP_Floor_Speeches))\n",
    "# relev_bids = []\n",
    "# for bid in included_bid_to_tbip:\n",
    "#     if np.isnan(included_bid_to_tbip[bid]):\n",
    "#         continue\n",
    "#     relev_bids.append(bid)\n",
    "# print(len(relev_bids))"
   ]
  },
  {
   "cell_type": "code",
   "execution_count": 68,
   "metadata": {
    "scrolled": true,
    "tags": []
   },
   "outputs": [
    {
     "name": "stdout",
     "output_type": "stream",
     "text": [
      "<class 'pandas.core.frame.DataFrame'>\n",
      "RangeIndex: 503 entries, 0 to 502\n",
      "Data columns (total 55 columns):\n",
      "Bioguide_ID                                     503 non-null object\n",
      "Name                                            503 non-null object\n",
      "Gender                                          503 non-null object\n",
      "Party                                           503 non-null object\n",
      "Born                                            503 non-null int64\n",
      "Number_of_House_Terms                           503 non-null int64\n",
      "Present_Cong115                                 503 non-null int64\n",
      "Present_Cong116                                 503 non-null int64\n",
      "House_Election_Candidate_Vote_Share_2016        418 non-null float64\n",
      "House_Election_Candidate_Vote_Share_2018        420 non-null float64\n",
      "District                                        503 non-null object\n",
      "District_Presidential_VoteShare_Dem2016         503 non-null float64\n",
      "District_Presidential_VoteShare_GOP2016         503 non-null float64\n",
      "District_Density                                503 non-null object\n",
      "District_Percent_Female                         503 non-null float64\n",
      "District_Percent_Male                           503 non-null float64\n",
      "District_Percent_Senior                         503 non-null float64\n",
      "District_Median_Age                             503 non-null float64\n",
      "District_Percent_White                          503 non-null float64\n",
      "District_Percent_Black                          503 non-null float64\n",
      "District_Percent_Asian                          503 non-null float64\n",
      "District_Percent_Hispanic                       503 non-null float64\n",
      "District_Percent_AmericanIndian                 503 non-null float64\n",
      "District_Mean_Income                            503 non-null int64\n",
      "District_Mean_Minus_National_Mean_Income        503 non-null int64\n",
      "District_Median_Income                          503 non-null int64\n",
      "District_Median_Minus_National_Median_Income    503 non-null int64\n",
      "District_Unemployment_Rate                      503 non-null float64\n",
      "DW-Nominate_1                                   503 non-null float64\n",
      "DW-Nominate_2                                   503 non-null float64\n",
      "TBIP_Floor_Speeches                             484 non-null float64\n",
      "TBIP_Tweets                                     471 non-null float64\n",
      "Standardized_Vote_Ideal_Point                   503 non-null float64\n",
      "Standardized_Speech_Ideal_Point                 484 non-null float64\n",
      "Standardized_Tweet_Ideal_Point                  471 non-null float64\n",
      "Progressive_Caucus_Cong115                      503 non-null int64\n",
      "NewDems_Caucus_Cong115                          503 non-null int64\n",
      "BlueDog_Caucus_Cong115                          503 non-null int64\n",
      "ProblemSolvers_Caucus_Cong115                   503 non-null int64\n",
      "RSC_Caucus_Cong115                              503 non-null int64\n",
      "Freedom_Caucus_Cong115                          503 non-null int64\n",
      "GOP_Leadership_Cong115                          503 non-null int64\n",
      "DEM_Leadership_Cong115                          503 non-null int64\n",
      "CommitteeChair_Cong115                          503 non-null int64\n",
      "TopCommittee_Cong115                            503 non-null int64\n",
      "Progressive_Caucus_Cong116                      503 non-null int64\n",
      "NewDems_Caucus_Cong116                          503 non-null int64\n",
      "BlueDog_Caucus_Cong116                          503 non-null int64\n",
      "ProblemSolvers_Caucus_Cong116                   503 non-null int64\n",
      "RSC_Caucus_Cong116                              503 non-null int64\n",
      "Freedom_Caucus_Cong116                          503 non-null int64\n",
      "GOP_Leadership_Cong116                          503 non-null int64\n",
      "DEM_Leadership_Cong116                          503 non-null int64\n",
      "CommitteeChair_Cong116                          503 non-null int64\n",
      "TopCommittee_Cong116                            503 non-null int64\n",
      "dtypes: float64(21), int64(28), object(6)\n",
      "memory usage: 216.2+ KB\n",
      "None\n"
     ]
    }
   ],
   "source": [
    "#final_legis_info_and_tbip_data = pd.read_csv('legislator_info_and_tbip_congresses_115_and_116.csv')\n",
    "print(final_legis_info_and_tbip_data.info())"
   ]
  },
  {
   "cell_type": "code",
   "execution_count": 69,
   "metadata": {},
   "outputs": [],
   "source": [
    "speaker_ids_from_data = list(speeches_data['Speaker_Bioguide_ID'])\n",
    "texts_from_data = list(speeches_data['Text'])\n",
    "dates_from_data = list(speeches_data['Date'])"
   ]
  },
  {
   "cell_type": "code",
   "execution_count": 70,
   "metadata": {},
   "outputs": [
    {
     "name": "stdout",
     "output_type": "stream",
     "text": [
      "490\n"
     ]
    }
   ],
   "source": [
    "relev_bids = list(bid_to_tbip.keys())\n",
    "print(len(relev_bids))"
   ]
  },
  {
   "cell_type": "code",
   "execution_count": 71,
   "metadata": {},
   "outputs": [
    {
     "name": "stdout",
     "output_type": "stream",
     "text": [
      "58932\n"
     ]
    }
   ],
   "source": [
    "retain_inds = []\n",
    "all_relev_ids, all_relev_texts, all_relev_dates = [], [], []\n",
    "for i, bid in enumerate(speaker_ids_from_data):\n",
    "    if bid in relev_bids:\n",
    "        retain_inds.append(i)\n",
    "        all_relev_ids.append(bid)\n",
    "        all_relev_texts.append(texts_from_data[i])\n",
    "        all_relev_dates.append(dates_from_data[i])\n",
    "print(len(retain_inds))"
   ]
  },
  {
   "cell_type": "code",
   "execution_count": 72,
   "metadata": {},
   "outputs": [
    {
     "name": "stdout",
     "output_type": "stream",
     "text": [
      "(58932, 50)\n"
     ]
    }
   ],
   "source": [
    "document_mean = document_mean[retain_inds]\n",
    "document_mean = np.array(torch.softmax(torch.from_numpy(document_mean), 1))\n",
    "print(document_mean.shape)"
   ]
  },
  {
   "cell_type": "code",
   "execution_count": 73,
   "metadata": {},
   "outputs": [],
   "source": [
    "texts_topics = pd.DataFrame()\n",
    "texts_topics[\"Bioguide_ID\"] = all_relev_ids\n",
    "texts_topics[\"Text\"] = all_relev_texts\n",
    "texts_topics[\"Date\"] = all_relev_dates"
   ]
  },
  {
   "cell_type": "code",
   "execution_count": 74,
   "metadata": {},
   "outputs": [],
   "source": [
    "for topic_ind in range(document_mean.shape[1]):\n",
    "    texts_topics['Topic' + str(topic_ind)] = list(map(lambda x:np.float32(str(x)), list(document_mean[:, topic_ind])))\n",
    "    "
   ]
  },
  {
   "cell_type": "code",
   "execution_count": 75,
   "metadata": {},
   "outputs": [],
   "source": [
    "texts_topics.to_csv('../../speeches_results/texts_topic_proportions.csv', \n",
    "                    index=False)"
   ]
  },
  {
   "cell_type": "code",
   "execution_count": 76,
   "metadata": {},
   "outputs": [],
   "source": [
    "relev_bid_to_inds = {}\n",
    "for bid in relev_bids:\n",
    "    relev_bid_to_inds[bid] = []\n",
    "for i, idd in enumerate(all_relev_ids):\n",
    "        relev_bid_to_inds[idd].append(i)"
   ]
  },
  {
   "cell_type": "code",
   "execution_count": 77,
   "metadata": {},
   "outputs": [],
   "source": [
    "def get_mean_topic_props_author(X, bid, author_to_inds):\n",
    "    return np.mean(X[author_to_inds[bid]], 0).reshape((1, num_topics))"
   ]
  },
  {
   "cell_type": "code",
   "execution_count": 78,
   "metadata": {},
   "outputs": [
    {
     "name": "stdout",
     "output_type": "stream",
     "text": [
      "(490, 50)\n"
     ]
    }
   ],
   "source": [
    "relev_bid_avg_topic_props = []\n",
    "for bid in relev_bids:\n",
    "    relev_bid_avg_topic_props.append(get_mean_topic_props_author(document_mean, \n",
    "                                                                 bid,\n",
    "                                                                 relev_bid_to_inds))\n",
    "relev_bid_avg_topic_props = np.concatenate(relev_bid_avg_topic_props, 0)\n",
    "print(relev_bid_avg_topic_props.shape)"
   ]
  },
  {
   "cell_type": "code",
   "execution_count": 79,
   "metadata": {},
   "outputs": [],
   "source": [
    "author_topic_props = pd.DataFrame()\n",
    "author_topic_props[\"Bioguide_ID\"] = relev_bids"
   ]
  },
  {
   "cell_type": "code",
   "execution_count": 80,
   "metadata": {},
   "outputs": [],
   "source": [
    "for topic_ind in range(num_topics):\n",
    "    author_topic_props['Topic' + str(topic_ind)] = list(relev_bid_avg_topic_props[:, topic_ind])\n",
    "    "
   ]
  },
  {
   "cell_type": "code",
   "execution_count": 81,
   "metadata": {},
   "outputs": [],
   "source": [
    "author_topic_props.to_csv('../../speeches_results/topic_proportions_per_author.csv',\n",
    "                          index=False)"
   ]
  },
  {
   "cell_type": "code",
   "execution_count": null,
   "metadata": {},
   "outputs": [],
   "source": []
  }
 ],
 "metadata": {
  "kernelspec": {
   "display_name": "pg36",
   "language": "python",
   "name": "pg36"
  },
  "language_info": {
   "codemirror_mode": {
    "name": "ipython",
    "version": 3
   },
   "file_extension": ".py",
   "mimetype": "text/x-python",
   "name": "python",
   "nbconvert_exporter": "python",
   "pygments_lexer": "ipython3",
   "version": "3.6.13"
  }
 },
 "nbformat": 4,
 "nbformat_minor": 4
}
